idb/store

Types

Type to represent the type of key used on an IndexedDB object store.

pub type ObjectStoreKey {
  OutOfLineKey
  AutoIncrementedOutOfLineKey
  InLineKey(String)
  AutoIncrementedInLineKey(String)
  CompoundInLineKey(List(String))
}

Constructors

  • OutOfLineKey

    Out-of-line key.

    If an object store is created using this type of key, then a key must be provided for all insert operation.

  • AutoIncrementedOutOfLineKey

    Auto incremented out-of-line key.

  • InLineKey(String)

    In-line key, with the specified key path.

    If empty string, then it will be treated as OutOfLineKey.

  • AutoIncrementedInLineKey(String)

    Auto incremented in-line key, with the specified key path.

    If empty string, then it will be treated as AutoIncrementedOutOfLineKey.

  • CompoundInLineKey(List(String))

    Compound in-line key, with the specified key paths.

    Empty string will be ignored. If empty list, then it will be treated as OutOfLineKey.

Search Document