-
-
Notifications
You must be signed in to change notification settings - Fork 668
Hello World
David Fahlander edited this page May 16, 2014
·
16 revisions
var db = new Dexie("FriendDatabase");
db.version(1).stores({
friends: "++id,name,age"
});
db.open();
db.friends.add({name: "Josephine", age: 21}).then(function(){
db.friends.where("age").between(20, 30).each(function(friend) {
console.log("Found young friend: " + JSON.stringify(friend));
});
});
Dexie.js - minimalistic and bullet proof indexedDB library