Skip to content

whatfield73/db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This kind is designed to help in using localStorage as a db. It also helps in porting kinds using db8 in enyo 1.0.

Instantiate using: 
{kind: "jsdatabase", name: "db1", published: {database: ""}, onFailure: "dbFailure", onDel: "deleteResp",
 onMake: "makeSuccess", onInsert: "insertResp", onFind: "findmarkResponse"}

See the example in jsfiddle @ http://jsfiddle.net/dCuUg/8/

Make calls to the db using:

insert( data in json);
remove(row number);  //used to be delete() -- changed due to compatibility issues
find() or find(name in db, data looking for);
make(database name);
update(data in json, id to edit);



About

localStorage db kind

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors