mirror of
https://github.com/knex/knex.git
synced 2025-08-15 04:01:00 +00:00
29 lines
492 B
JavaScript
29 lines
492 B
JavaScript
// SQLite3 - Cordova (PhoneGap)
|
|
// ----------
|
|
(function(define) {
|
|
|
|
"use strict";
|
|
|
|
define(function(require, exports) {
|
|
|
|
var Sqlite3 = require('../base/sqlite3');
|
|
|
|
var Cordova = Sqlite3.extend({
|
|
|
|
query: function() {
|
|
|
|
},
|
|
|
|
getConnection: function() {
|
|
window.openDatabase(/* name, version, display_name, size */);
|
|
}
|
|
|
|
});
|
|
|
|
exports.Cordova = Cordova;
|
|
|
|
});
|
|
|
|
})(
|
|
typeof define === 'function' && define.amd ? define : function (factory) { factory(require, exports); }
|
|
); |