// The default configuration will save the complete model data as json
// into a database column with the name "data"
class MyCollection extends Relution.livedata.Collection {};
MyCollection.prototype.model = MyModel;
MyCollection.prototype.entity = 'MyTableName';
MyCollection.prototype.store = new Relution.livedata.WebSqlStore();
// If you want to use specific columns you can specify the fields
// in the entity of your model like this:
class MyModel extends Relution.livedata.Model {};
MyModel.prototype.idAttribute = 'id';
stores LiveData into the WebSQL database.
// The default configuration will save the complete model data as json // into a database column with the name "data" class MyCollection extends Relution.livedata.Collection {}; MyCollection.prototype.model = MyModel; MyCollection.prototype.entity = 'MyTableName'; MyCollection.prototype.store = new Relution.livedata.WebSqlStore();
// If you want to use specific columns you can specify the fields // in the entity of your model like this: class MyModel extends Relution.livedata.Model {}; MyModel.prototype.idAttribute = 'id';