Skip to content

Commit

Permalink
Merge pull request #24 from kohlia/master
Browse files Browse the repository at this point in the history
support cordova-sqlcipher-adapter by passing dbKey from ionic-storage
  • Loading branch information
thgreasi authored Jan 31, 2018
2 parents ff644cd + 1d78471 commit e343473
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ SQLite driver for [Cordova](https://cordova.apache.org/) apps using [localForage
* via npm with: `npm i --save localforage localforage-cordovasqlitedriver` (ionic 2 users might prefer ths one)
* via bower with: `bower install --save localforage localForage-cordovaSQLiteDriver`

#### Cordova-sqlcipher-adapter support
install the plugin by
```
cordova plugin add cordova-sqlcipher-adapter --save
```

Pass the key required by the database via the localforage object(by passing __dbKey__) or if using ionic-storage by passing __dbKey__ via IonicStorageModule in your NgModule

## CHANGELOG

### v1.3
Expand Down
1 change: 1 addition & 0 deletions lib/localforage-cordovasqlitedriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function _initStorage(options) {
version: String(dbInfo.version),
description: dbInfo.description,
size: dbInfo.size,
key: dbInfo.dbKey,
location: dbInfo.location
});
} catch (e) {
Expand Down

0 comments on commit e343473

Please sign in to comment.