-
-
Notifications
You must be signed in to change notification settings - Fork 641
TableSchema
David Fahlander edited this page Apr 15, 2014
·
9 revisions
db.table(tableName).schema
The name of the object store.
primKey : IndexSpec
Specification of primary key.
indexes : Array<IndexSpec>
List of indexes properties.
Object populated with indexed properties. In case Table.defineClass() or Table.mapToClass() has been used, also non-indexed properties will be part of the template.
This property is used internally by Dexoe to help out IDE with code completion.
In case Table.defineClass() or Table.mapToClass() has been used, the mapped constructor function will be stored in this property.
Primary key and indexes for the object store (Table).
var db = new Dexie("MyDB");
db.version(1).stores({friends: "++id,name"});
alert ("Primary key: " + db.friends.schema.primKey.keyPath); // Will alert ("id");
Dexie.js - minimalistic and bullet proof indexedDB library