createObjectStore

fun createObjectStore(name: String, options: IDBObjectStoreParameters = definedExternally): IDBObjectStore(source)

Creates a new object store with the given name and options and returns a new IDBObjectStore.

Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.

MDN Reference