sqflite_sqlcipher icon indicating copy to clipboard operation
sqflite_sqlcipher copied to clipboard

How can I use alongside an ORM?

Open daybson opened this issue 4 years ago • 4 comments

Hi, I use this package in production for 1 year.

I was looking for some orm compatible with sqflite, but I don't know how could I make it works along sqlcipher.

Do you have any idea to help me?

Thank you!

daybson avatar Apr 12 '21 23:04 daybson

I've been using Moor for quite some time already and it is great. It supports encryption, which uses this library under the hood.

There are other ORMs for Sqlite but I haven't tried them out.

davidmartos96 avatar Apr 13 '21 06:04 davidmartos96

I have been using this with "sqfEntity" plugin and works great. for my apps, MOOR is like cutting the butter by sword.

Abhijit-Revamp avatar Apr 23 '21 20:04 Abhijit-Revamp

sqfEntity

Could you give an example of how you do you open your encripted database using the orm?

daybson avatar Apr 23 '21 21:04 daybson

@daybson --> I used sqfEntity, added "sqflite_sqlcipher" to pubspec (as documented here) and it just worked. Just had to specify the password why creating database model (as per sqfenity documentation)

Abhijit-Revamp avatar May 30 '21 18:05 Abhijit-Revamp