-
Notifications
You must be signed in to change notification settings - Fork 46
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Desktop support #42
Comments
@iampopal You can use sqlcipher with sqflite_common_ffi. Check out this: #28 (comment) I don't have plans to support it via this package because this is just a wrapper of the native iOS and Android libraries. |
Thanks @davidmartos96 nice trick I was not aware of. Your comment could definitely make it into the doc. I would link to it if you have it somewhere or copy/paste it in sqflte_common_ffi if you don't mind. |
@alextekartik The only place is that issue thread. You can copy the snippet, I don't mind. |
@davidmartos96 Thank you for the comment, but I am not able to load sqlcipher.dll file in windows Asynchronous error |
I have download sqlcipher.dll file from |
This is the code for loading sqlcipher.dll static DynamicLibrary sqlcipherOpen() {
if (Platform.isLinux || Platform.isAndroid) {
return DynamicLibrary.open('libsqlcipher.so');
}
if (Platform.isMacOS || Platform.isIOS) {
return DynamicLibrary.open('/usr/lib/libsqlcipher.dylib');
}
if (Platform.isWindows) {
return DynamicLibrary.open(join(
'pathTo',
'sqlcipher.dll'));
}
throw UnsupportedError(
'moor_ffi does not support ${Platform.operatingSystem} yet');
} |
@iampopal I wouldn't download any dll from those kind of websites, watch out for that. I'd recommend that you follow the compilation instructions and do it yourself. |
@iampopal Also double check the path of the dll when loading it from Dart |
Thank you for your quick replay, i will watch it. |
pathTo is the full path the file folder and it's totally correct. |
@iampopal You can try using an absolute path for loading it first. I know from experience that loading with a relative path may be different depending on how you run the app. So maybe it's simply that the relative path is incorrect. After you know the DLL is correct you can investigate the relative path. |
@davidmartos96 I am getting this error Asynchronous error when using absolute path |
absolutePathTo |
@iampopal If you are using the downloaded dll I wouldn't have my hopes up. Try with the compilation steps from https://github.com/daybson/sqlite_cipher_windows |
I have reviewed this folder and looked for sqlciper.dll but didn't found the sqlciper.dll file which used my many examples to load sqlcipher.dll https://github.com/daybson/sqlite_cipher_windows/tree/master/sqlite%20cipher%20compiled/sqlcipher |
@iampopal It's probably the one called |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I am using https://pub.dev/packages/sqflite_common_ffi currently as windows database, can we have suport of this package in windows operating system.
The text was updated successfully, but these errors were encountered: