-
Notifications
You must be signed in to change notification settings - Fork 583
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
How can Sugar ORM with preloaded database #87
Comments
There's no way to do that currently, but that implementation seems interesting. No such functionality is planned for v1.3, but a future release may contain that. |
On the same lines, is there a way to bundle insert commands along with "sugar_upgrades" sql file? |
Hmm.. It's not available for database creation. upgrades only gets triggered for database upgrade. But that's an interesting point. We can try to expose the handle during database creation. |
This is the single issue that is keeping me from upgrading our company's Android code to use Sugar ORM. When our app launches it downloads the most recent copy of the database from the server to give the user everything they need. It would be extremely useful if we could then inject this SQLite database into Sugar ORM to use. |
I agree, this is a much needed feature. |
No news for this important feature ? Thanks. |
I am using a preloaded database (refer this http://kdehairy.com/using-a-preloaded-sqlite-database-with-sqliteopenhelper/). How can inject the SQLiteDatabase instance to sugar ORM?
thanks
Krishna
The text was updated successfully, but these errors were encountered: