Sugar ORM Android With multiple databases

夙愿已清 提交于 2019-12-11 00:03:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!