Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Modify the path of the database #47

Open
powellbird opened this issue Jun 1, 2018 · 1 comment
Open

Modify the path of the database #47

powellbird opened this issue Jun 1, 2018 · 1 comment

Comments

@powellbird
Copy link

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

@roscopeco
Copy link
Owner

roscopeco commented Jun 1, 2018

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants