Table.schema
Syntax
db.[tableName].schema
Type
Sample
var db = new Dexie("MyDB");
db.version(1).stores({friends: "++id,name"});
alert ("Primary key: " + db.friends.schema.primKey.keyPath); // Will alert ("id");
db.[tableName].schema
var db = new Dexie("MyDB");
db.version(1).stores({friends: "++id,name"});
alert ("Primary key: " + db.friends.schema.primKey.keyPath); // Will alert ("id");
© 2014-2025 Awarica AB
Made with love for great people.
Read Terms & Conditions and Privacy Policy.