added sqlitePlugin.openDatabase("my_sqlite_database.sqlite3") to the api

This commit is contained in:
Mike 2012-04-09 17:29:06 -04:00
parent 5d989021a5
commit 0760c53232

View File

@ -247,4 +247,15 @@
};
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);