-
Notifications
You must be signed in to change notification settings - Fork 112
UWP Init
Eric Sink edited this page Sep 1, 2020
·
1 revision
SQLitePCLRaw 2.x does not call sqlite3_win32_set_directory()
whereas 1.x did. On UWP, it is likely that you will need to add something like the following code to your app init:
var rc = SQLitePCL.raw.sqlite3_win32_set_directory(
1, // data
Windows.Storage.ApplicationData.Current.LocalFolder.Path
);
// TODO check rc for errors
rc = SQLitePCL.raw.sqlite3_win32_set_directory(
2, // temp
Windows.Storage.ApplicationData.Current.TemporaryFolder.Path
);
// TODO check rc for errors