JayData.org

Creating a stand-alone web application

Author: Hajnalka Battancs May 30th, 2012

, , ,


If you do not wish to use a central datastore, just persist data on the client itself for your application, JayData will come to your aid with the built-in SQLite / WebSQL or IndexedDb provider.

JayData is a cross-platform, cross-provider, cross-layer Javascript data access library designed to streamline your data operations in mobile applications, web applications and in nodeJS serverside code.

And this is how you can get it to work:

First, include the jaydata.js library file.

Or…

Then, define a data model.

Now that the model is defined, instantiate the context (ie. set up the connection or the local database):

And run queries…

Delete entities…

Create new ones…

Or update existing ones…


, , ,