Created
August 16, 2011 10:43
-
-
Save tuxcanfly/1148837 to your computer and use it in GitHub Desktop.
Sencha touch proxy for web database: Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
As I refer to the url of the file with the JSON data?