From cfd5dbf229abc855238bcf56513fab84b1c38307 Mon Sep 17 00:00:00 2001 From: jonne Date: Fri, 16 Nov 2012 13:33:30 +0200 Subject: [PATCH] Made webkit-sqlite adapter database size configurable --- src/adapters/webkit-sqlite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/webkit-sqlite.js b/src/adapters/webkit-sqlite.js index 7c6e462f..44d061b0 100644 --- a/src/adapters/webkit-sqlite.js +++ b/src/adapters/webkit-sqlite.js @@ -29,7 +29,7 @@ Lawnchair.adapter('webkit-sqlite', (function () { , create = "CREATE TABLE IF NOT EXISTS " + this.record + " (id NVARCHAR(32) UNIQUE PRIMARY KEY, value TEXT, timestamp REAL)" , win = function(){ return cb.call(that, that); } // open a connection and create the db if it doesn't exist - this.db = openDatabase(this.name, '1.0.0', this.name, 65536) + this.db = openDatabase(this.name, '1.0.0', this.name, options.maxSize || 65536) this.db.transaction(function (t) { t.executeSql(create, [], win, fail) })