Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UniqueIndex

Hierarchy

  • UniqueIndex

Index

Constructors

Methods

Constructors

constructor

Methods

clear

  • clear(): void

get

  • get(value: any): number
  • Returns the $loki id of an unique value.

    Parameters

    • value: any

      the value to retrieve a loki id match for

    Returns number

remove

  • remove(id: number): void

set

  • set(id: number, value: any): void
  • Sets a document's unique index.

    Parameters

    • id: number

      loki id to associate with value

    • value: any

      value to associate with id

    Returns void

update

  • update(id: number, value: any): void
  • Updates a document's unique index.

    Parameters

    • id: number

      (loki) id of document to update the value to

    • value: any

      value to associate with loki id

    Returns void

Generated using TypeDoc