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
Use existing database #48
Comments
Known limitation, it hasn't been a priority but i'll try to get it into the next version 👍 |
Great! I've forked the repo and will give it a try today. |
After a quick check, https://github.com/jgilfelt/android-sqlite-asset-helper does the trick quite nicely (but also subclass I don't know if this use case is important enough to bloat Sprinkles with this feature (either by replicating some pieces of the sqlite-asset-helper or by including it as a dependency). |
I've added a parameter to the Sprinkles init method: All in all, isn't it a bit weird that the DB instance is held by the DbOpenHelper? Maybe the static db variable should in Sprinkles? |
This feels like a duplicate of pull request #49. ok if i close this and we keep the discussion there? Regarding the static variables, it's not pretty and i would like to change it, not decided how yet though. |
Ok, me can move the discussion in #49 ;) |
I would like to use Sprinkles with an existing database. Right now, the database name is hardcoded in
DbOpenHelper
. It would be great to be able to open a database with another name bundled in the App.The text was updated successfully, but these errors were encountered: