First beta release:
Features
Virtual Indexes
VirtualIndex makes it possible to use the first part of a compound index as if it was an ordinary index.
Dexie will emulate an ordinary index so that it will works with algorithms such as equalsIgnoreCase() etc.
Example:
const db = new Dexie("mydb");
db.version(1).stores({
friends: '++id, [lastName,firstName]'
});
function findFriendByLastName(prefix) {
// Note: You can use 'lastName' because it's the first part of a compound index.
return db.friends.where('lastName').startsWith(prefix);
}
In earlier versions, you would have to specify 'lastName' index side by side with [lastName+firstName]