I'm looking for a way to enable shared cache mode when using the System.Data.SQLite wrapper for SQLite.
I've looked through the source code for this project, and see that it's exposed internally to the assembly in UnsafeNativeMethods.cs as:
internal static extern SQLiteErrorCode sqlite3_enable_shared_cache(
int enable);
Unfortunately, I can't get at this method since it's internal.
Anyone have a solution for this?
Replies were most appreciated. Thanks!
FYI, when using the SQLiteConnectionStringBuilder
API, enable the shared cache by:
var builder = new SQLiteConnectionStringBuilder();
...
builder.Add("cache", "shared");