-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Proposal] Enhance ConnectionString parsing of SQLiteSyncProvider to support Journal Mode=WAL #17
Comments
Should be enough to change this code. I have tested.
|
if you make the change indicated above (builder.ConnectionString=filepath), the passed connectionstring for SQLite can look like this: Please apply this change. |
Here is my suggestion : First of all, adding a method to be able to construct your ConnectionString through a nice object builder,
For your need, I will also modify the initial constructor like this:
Like that, I keep the descendant compatibility :) Is it make sense for you ? |
Perfect! |
Hi,
actually, adding for example a ";" at the end of SQLite ConnectionString produces a database file like: TestDB.db;
Could this be parsed by using "Data Source=TestDB.db; Journal Mode=WAL;"
It is actually possible activating Journal Mode=WAL, adding this line in SQLiteSyncProvider.cs:
builder.JournalMode = SQLiteJournalModeEnum.Wal;
Maybe it is possible to read this setting from ConnectionString
The text was updated successfully, but these errors were encountered: