createIndex

fun createIndex(name: String, keyPath: String, options: IDBIndexParameters = definedExternally): IDBIndex(source)

The createIndex() method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database.

MDN Reference


fun createIndex(name: String, keyPath: ReadonlyArray<JsString>, options: IDBIndexParameters = definedExternally): IDBIndex(source)