Skip to content

cordova sqlite plugin #5

Description

@fdjean

To use with websql or sqlite (ionic, cordova plugin)
line 88:

db = window.openDatabase(db_params.name, db_params.version, db_params.sub_name, db_params.size);

To (not fully tested):

if (window.cordova) {
    $ionicPlatform.ready(function () {
        db = $cordovaSQLite.openDB(db_params);
    });
} else {
    db = window.openDatabase(db_params);
}

Passing a open params (object) I can use https://github.com/litehelpers/Cordova-sqlcipher-adapter
with customs options

And to finish 😏 line 82:

var db, db_set = false;

db_set is a dead variable ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions