idb/index

Types

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

pub type IndexKey {
  Key(String)
  CompoundKey(List(String))
  UniqueKey(String)
  UniqueCompoundKey(List(String))
  MultiEntryKey(String)
  MultiEntryUniqueKey(String)
}

Constructors

  • Key(String)

    Key path for the index.

  • CompoundKey(List(String))

    Compound key path for the index.

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

  • UniqueKey(String)

    Key path for the index with unique property.

  • UniqueCompoundKey(List(String))

    Compound key path for the index with unique property.

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

  • MultiEntryKey(String)

    Key path for the index with multi entry property.

  • MultiEntryUniqueKey(String)

    Key path for the index with multi entry and unique property.

Search Document