roscopeco/ormdroid

Modify the path of the database

Opened this issue · 1 comments

good morning how are you

I have tried the library, and it works fine, but I want to change the path of the database, there is some way to do it, excellent work, thanks

Hi,

By default, the database path is provided by the Android context.

You can however pass a custom database to the overloaded methods on Entity - load, loadall, save etc all have an overload that accepts a custom SqlLiteDatabase that you can create however you need.

Does that help you?