问题
I am trying to create an application for multiple users with multiple database. Each time a user login ,App will select the particular user's database and fetch the values from it. Is it possible to implement it with Sugar ORM because in Sugar ORM , we can specify only One db in manifest
<meta-data android:name="DATABASE" android:value="Example.db" />
Is there any possible to way to close the existing DB and select another DB?
回答1:
You asked the same question on the Sugar GitHub Library.
There are multiple issues on the GitHub Repo that mention the multiple database idea (example). All these issues are still open and do not show a solution.
You can also not find anything about it at the wiki.
So you can conclude it is not possible in SugarORM.
来源:https://stackoverflow.com/questions/47747987/sugar-orm-android-with-multiple-databases