Skip to content
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

Open
jkicha opened this issue Apr 18, 2014 · 6 comments
Open

How can Sugar ORM with preloaded database #87

jkicha opened this issue Apr 18, 2014 · 6 comments
Milestone

Comments

@jkicha
Copy link

jkicha commented Apr 18, 2014

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

@whoshuu
Copy link
Collaborator

whoshuu commented Jul 4, 2014

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.

@vignesh-vs-in
Copy link

On the same lines, is there a way to bundle insert commands along with "sugar_upgrades" sql file?

@satyan
Copy link
Collaborator

satyan commented Jul 31, 2014

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.

@andreathacker
Copy link

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.

@shaunkutch
Copy link

I agree, this is a much needed feature.

@whoshuu whoshuu added this to the 1.5.0 milestone Apr 4, 2015
@alaaghribi
Copy link

No news for this important feature ? Thanks.

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

No branches or pull requests

7 participants