Permalink
Browse files

added initial files

  • Loading branch information...
tomalex0 committed Oct 19, 2011
1 parent bb58211 commit 8b1a81c32e99cae797865a63f9d4e01959875348
Showing with 666 additions and 0 deletions.
  1. +46 −0 SqliteConnection.js
  2. +352 −0 SqliteProxy.js
  3. +17 −0 index.html
  4. +251 −0 index.js
View
@@ -0,0 +1,46 @@
+
+// var a = {dbName : "test",dbVersion : "1.0",dbDescription: "testdb",dbSize : 65536};
+
+Ext.define('Ext.Sqlite.Connection', {
+ extend: 'Ext.util.Observable',
+ /**
+ * @cfg {String} dbName
+ * Name of database
+ */
+ dbName: undefined,
+
+ /**
+ * @cfg {String} version
+ * database version. If different than current, use updatedb event to update database
+ */
+ dbVersion: '1.19',
+
+ /**
+ * @cfg {String} dbDescription
+ * Description of the database
+ */
+ dbDescription: '',
+
+ /**
+ * @cfg {String} dbSize
+ * Max storage size in bytes
+ */
+ dbSize: 5 * 1024 * 1024,
+
+ /**
+ * @cfg {String} dbConn
+ * database connection object
+ */
+ dbConn : undefined,
+
+ constructor : function(config) {
+ config = config || {};
+
+ Ext.apply(this, config);
+ var me = this;
+
+ me.callParent([this]);
+ me.dbConn = openDatabase(me.dbName,me.dbVersion, me.dbDescription, me.dbSize);
+ return me;
+ }
+});
Oops, something went wrong.

0 comments on commit 8b1a81c

Please sign in to comment.