From 0760c53232699b681c4c5906839b994ac253ad36 Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 9 Apr 2012 17:29:06 -0400 Subject: [PATCH] added sqlitePlugin.openDatabase("my_sqlite_database.sqlite3") to the api --- Android/SQLitePlugin/assets/www/SQLitePlugin.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Android/SQLitePlugin/assets/www/SQLitePlugin.js b/Android/SQLitePlugin/assets/www/SQLitePlugin.js index f0928c9..d51c4b0 100755 --- a/Android/SQLitePlugin/assets/www/SQLitePlugin.js +++ b/Android/SQLitePlugin/assets/www/SQLitePlugin.js @@ -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); \ No newline at end of file