Skip to content

Database.createObjectStore with keyPath and autoincrement ? #235

@razorree

Description

@razorree

In 'Transaction.kt' there is

public fun Database.createObjectStore(name: String, autoIncrement: AutoIncrement): ObjectStore

and

public fun Database.createObjectStore(name: String, keyPath: KeyPath): ObjectStore

but there is no function with keyPath and autoincrement, why? from the code I don't know if aforementioned function means other option is on. (If I use autoincrement=true, what's id field name? just id?)

IDBObjecStore has a function with a parameter:

public external interface IDBCreateObjectStoreOptions : JsAny {
    public var autoIncrement: Boolean?
    public var keyPath: IDBKeyPath?
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions