You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short summary: In v2 (the upcoming release, see #255), SQLitePCLRaw would no longer call sqlite3_win32_set_directory(). The app would have to do this itself.
Details:
Using SQLite with UWP requires telling SQLite where the sandbox directories are. In the 1.x releases, this has been done inside SQLitePCLRaw with the following two calls, which (for this proposal) would need to be done by the enclosing app or framework:
There are 3 things I dislike about doing these calls inside SQLitePCLRaw:
These calls initialize the SQLite library, which means things like sqlite3_config() can no longer be called.
The directories chosen might not be the ones the app wants to use.
These calls add significant complexity to my build system, which I have been desperately trying to make simpler.
Okay, so probably the most credible gripe here is (1). I consider it important that SQLitePCLRaw begin with the SQLite library in an uninitialized state so the enclosing app/framework has full flexibility. Right now, UWP is an exception to that rule.
If you want to label (3) as laziness on my part, I'm okay with that, but at least its honorable laziness. Simpler is better. And the additional build system complexity is hard to swallow just to get a feature that (a) causes problems, and (b) may not be what all users want, and (c) only affects UWP.
When v2 is released, I will publish a list of breaking changes, tentatively including this one.
Anyway, I'm asking for feedback on this. I might hear something to change my mind. :-)
The text was updated successfully, but these errors were encountered:
Short summary: In v2 (the upcoming release, see #255), SQLitePCLRaw would no longer call
sqlite3_win32_set_directory()
. The app would have to do this itself.Details:
Using SQLite with UWP requires telling SQLite where the sandbox directories are. In the 1.x releases, this has been done inside SQLitePCLRaw with the following two calls, which (for this proposal) would need to be done by the enclosing app or framework:
There are 3 things I dislike about doing these calls inside SQLitePCLRaw:
sqlite3_config()
can no longer be called.Okay, so probably the most credible gripe here is (1). I consider it important that SQLitePCLRaw begin with the SQLite library in an uninitialized state so the enclosing app/framework has full flexibility. Right now, UWP is an exception to that rule.
If you want to label (3) as laziness on my part, I'm okay with that, but at least its honorable laziness. Simpler is better. And the additional build system complexity is hard to swallow just to get a feature that (a) causes problems, and (b) may not be what all users want, and (c) only affects UWP.
When v2 is released, I will publish a list of breaking changes, tentatively including this one.
Anyway, I'm asking for feedback on this. I might hear something to change my mind. :-)
The text was updated successfully, but these errors were encountered: