-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Expose SQLite VFS option in connection string #34864
base: main
Are you sure you want to change the base?
Conversation
db442e9
to
27747aa
Compare
@arontsang This needs to be updated to target |
0bd8307
to
cfd4ada
Compare
@cincuranet Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small questions/comments. Otherwise LGTM.
@@ -55,10 +57,11 @@ private enum Keywords | |||
private bool _recursiveTriggers; | |||
private int _defaultTimeout = 30; | |||
private bool _pooling = true; | |||
private string? _vfs = string.Empty; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the default value should be null
. Any reason for string.Empty
?
@@ -269,6 +285,9 @@ public override object? this[string keyword] | |||
case Keywords.Pooling: | |||
Pooling = Convert.ToBoolean(value, CultureInfo.InvariantCulture); | |||
return; | |||
case Keywords.Vfs: | |||
Vfs = Convert.ToString(value, CultureInfo.InvariantCulture);; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Two semicolons at the end.
@@ -458,6 +477,9 @@ private void Reset(Keywords index) | |||
case Keywords.Pooling: | |||
_pooling = true; | |||
return; | |||
case Keywords.Vfs: | |||
_vfs = string.Empty; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above. null
?
Simple PR to expose the VFS option in the connection string.