Migration API: StoreBuilder
The store builder is used to modify a new or existing object store.
indices
Summary
tsclass StoreBuilder { indices: string[]; }
Gets the names of the indices of the store.
name
Summary
tsclass StoreBuilder { name: string; }
Gets the name of the store.
createIndex()
Summary
tsclass StoreBuilder { createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): StoreBuilder; }
Parameters
name
— The name of the index to create.keyPath
— The path or paths to the index key values.
dropIndex()
Summary
tsclass StoreBuilder { dropIndex(name: string): StoreBuilder; }
Parameters
name
— The name of the index to drop.