DBFlow icon indicating copy to clipboard operation
DBFlow copied to clipboard

working example with SQLCipher

Open noinnion opened this issue 11 years ago • 5 comments

Hi,

does anyone have a working example of DBFlow + SqlCipher? I tried to create a custom FlowSQLiteOpenHelper but I have not idea how to use it with SqlCipher.

Any help would be appreciated.

Thanks

noinnion avatar Oct 18 '15 16:10 noinnion

It seems that you need to replace all android.database.sqlite.* with net.sqlcipher.database.*. Could it be done with FlowSQLiteOpenHelper?

If not, could I just clone the project and replace all imports?

noinnion avatar Oct 19 '15 06:10 noinnion

@noinnion I haven't really looked at the implementation, but since many people are calling for it, it will be on my radar.

agrosner avatar Oct 28 '15 14:10 agrosner

@agrosner Please, please, please, add a DB abstraction similar to that in GreenDAO's "DbAbstraction" branch. Take a look: https://github.com/greenrobot/greenDAO/blob/DbAbstraction/DaoCore/src/de/greenrobot/dao/database/Database.java https://github.com/greenrobot/greenDAO/blob/DbAbstraction/DaoCore/src/de/greenrobot/dao/database/AndroidSQLiteDatabase.java

With this aproach, both SQLCipher and Spatialite can be used with DBFlow very easily.

svkostadinoff avatar Nov 03 '15 16:11 svkostadinoff

done. in develop

agrosner avatar Jan 17 '16 18:01 agrosner

@agrosner Thanks for adding the example Could you tell me how it exactly works?

gnuhel avatar Jan 18 '16 09:01 gnuhel