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

support pre-filled databases #1687

Merged
merged 1 commit into from
Jun 14, 2017
Merged

support pre-filled databases #1687

merged 1 commit into from
Jun 14, 2017

Conversation

kurtdevos
Copy link
Contributor

This allows the same plugin wrapper to be used with an alternative version that supports pre-filled sqlite databases.
See https://github.com/litehelpers/cordova-sqlite-ext

Installing sqlite-ext:

ionic cordova plugin add cordova-sqlite-ext --save
npm install --save @ionic-native/sqlite

Opening an existing database requires the "createFromLocation" param:

this.sqlite.create({
      name: dbName,
      location: 'default',
      createFromLocation: 1
    })

This patch adds that param as an optional parameter.

@ihadeed ihadeed merged commit b52371b into danielsogl:master Jun 14, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants