mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-16 14:05:09 -05:00
added sqlitePlugin.openDatabase("my_sqlite_database.sqlite3") to the api
This commit is contained in:
parent
5d989021a5
commit
0760c53232
@ -247,4 +247,15 @@
|
|||||||
};
|
};
|
||||||
return SQLitePluginTransaction;
|
return SQLitePluginTransaction;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
root.sqlitePlugin = {
|
||||||
|
openDatabase: function(dbPath, version, displayName, estimatedSize, creationCallback, errorCallback) {
|
||||||
|
if (version == null) version = null;
|
||||||
|
if (displayName == null) displayName = null;
|
||||||
|
if (estimatedSize == null) estimatedSize = 0;
|
||||||
|
if (creationCallback == null) creationCallback = null;
|
||||||
|
if (errorCallback == null) errorCallback = null;
|
||||||
|
return new SQLitePlugin(dbPath, creationCallback, errorCallback);
|
||||||
|
}
|
||||||
|
};
|
||||||
}).call(this);
|
}).call(this);
|
Loading…
Reference in New Issue
Block a user