Skip to content

Instantly share code, notes, and snippets.

@tuxcanfly
Created August 16, 2011 10:43
Show Gist options
  • Save tuxcanfly/1148837 to your computer and use it in GitHub Desktop.
Save tuxcanfly/1148837 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
}
}
});
@thiagohome
Copy link

As I refer to the url of the file with the JSON data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment