Dexie.[table]

Syntax

var db = new Dexie(dbName);
db.version(1).stores({table1: "...", table2: "..."});
db.open();

assert(db.table1 instanceof db.Table);
assert(db.table2 instanceof db.Table);

Type

Table

Sample

var db = new Dexie("MyDB");
db.version(1).stores({friends: "++id,name,gender", pets: "++id,name,kind"});
db.open();

db.friends.add({name: "Simon", gender: "male"});
db.pets.add({name: "Josephina", kind: "dog"});

Table of Contents