Skip to content

Instantly share code, notes, and snippets.

@jsbimra
Forked from tuxcanfly/sencha-webdb-example.js
Created October 5, 2012 09:08
Show Gist options
  • Save jsbimra/3838861 to your computer and use it in GitHub Desktop.
Save jsbimra/3838861 to your computer and use it in GitHub Desktop.
Sencha touch proxy for web database: Example
Ext.regModel('Person', {
fields: [
{name: 'name', type: 'string'},
{name: 'age', type: 'int'},
{name: 'phone', type: 'string'},
{name: 'alive', type: 'boolean', defaultValue: true}
],
proxy: {
type: 'websqlproxy',
dbName: 'users',
dbTable: 'persons',
dbVersion: '1.0',
writer: {
type: 'json',
writeAllFields: false
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment