I am looking for a way to enable shared cache mode when using the System.Data.SQLite shell for SQLite.
I looked at the source code for this project and see that it is open inside the assembly in UnsafeNativeMethods.cs as:
internal static extern SQLiteErrorCode sqlite3_enable_shared_cache( int enable);
Unfortunately, I cannot get this method because it is internal.
Does anyone have a solution for this?
Answers were most appreciated. Thanks!
FYI, using the SQLiteConnectionStringBuilder API, enable the shared cache with:
var builder = new SQLiteConnectionStringBuilder(); ... builder.Add("cache", "shared");
source share