Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot use SQLite WAL mode
    primarykey
    data
    text
    <p>I'm using c# with NHibernate on SQLite. System.Data.SQLite version 1.0.88 SQLite version 3.7.17</p> <p>I've recently found out about SQLite <a href="http://www.sqlite.org/wal.html" rel="nofollow">WAL mode</a> and it looks like just what I need. The problem is that I can't seem to get it to work.</p> <p>The documentation simply states:</p> <blockquote> <p>To convert to WAL mode, use the following pragma: </p> <p>PRAGMA journal_mode=WAL; </p> <p>The journal_mode pragma returns a string which is the new journal mode. On success, the pragma will return the string "wal". If the conversion to WAL could not be completed (for example, if the VFS does not support the necessary shared-memory primitives) then the journaling mode will be unchanged and the string returned from the primitive will be the prior journaling mode (for example "delete").</p> </blockquote> <p>I've tried this both within code: </p> <pre><code>ISQLQuery query = session.CreateSQLQuery("PRAGMA journal_mode=WAL;"); object result = query.UniqueResult(); </code></pre> <p>and within the <a href="http://sqliteman.com/" rel="nofollow">SQLiteman</a> management application.</p> <p>In each case, I get a return value of 'delete'. i.e. The database has failed to enter WAL mode. Trouble is, I have no idea why.. The only possibility I can see in the documentation is your file system not supporting shared-memory primatives, but I'm on Win 7 so that's not an issue.</p> <p>Any ideas how I can enable WAL mode or figure out why it's not working?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload