-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to load a database dynamically by name *without* resetting/deleting existing one? #1449
Comments
DBFlow Version: 4.1.1 Maybe this should be raised as other issue but this is related to above question. I would like to have possibility of manage each db individually based on database name not by class. Ability to close db without delete database, open new/existing database which are based on the same class but has different names. Purpose: multi-database system when each user has own db encrypted with own password but used the same class including the same migrations scripts. |
+1 |
in |
DBFlow Version: 4.1.1
Issue Kind: Question (and possiblyFeature):
Description:
Starting in DBFlow version 4.1.0, there is the ability to dynamically load another database file via a
FlowManager.getDatabase(MyDatabase.class).reset(...)
call. However, this method deletes the existing database. Is there a way (or something planned) to load another database but leave the existing one intact?The use case I have is an app with a catalog of "products" that the user can select. Each product has a database associated with it where the model is the same across products. Upon selection of a particular product, I'd like to dynamically load said product. Only one product is active at a time.
The text was updated successfully, but these errors were encountered: