Options
All
  • Public
  • Public/Protected
  • All
Menu
implements

{Datastore}

Hierarchy

Index

Constructors

constructor

Methods

_all

  • _all(q: Query, options: undefined | Options): AsyncIterable<Pair>
  • Extending classes should override query or implement this method

    Parameters

    • q: Query
    • options: undefined | Options

    Returns AsyncIterable<Pair>

_allKeys

  • _allKeys(q: KeyQuery, options: undefined | Options): AsyncIterable<Key>
  • Extending classes should override queryKeys or implement this method

    Parameters

    • q: KeyQuery
    • options: undefined | Options

    Returns AsyncIterable<Key>

batch

  • batch(): Batch

close

  • close(): Promise<void>

delete

  • delete(key: Key, options: undefined | Options): Promise<void>
  • Parameters

    • key: Key
    • options: undefined | Options

    Returns Promise<void>

deleteMany

  • deleteMany(source: AwaitIterable<Key>, options?: undefined | Options): AsyncIterable<Key>
  • Parameters

    • source: AwaitIterable<Key>
    • options: undefined | Options = {}

    Returns AsyncIterable<Key>

get

  • get(key: Key, options: undefined | Options): Promise<Uint8Array>
  • Parameters

    • key: Key
    • options: undefined | Options

    Returns Promise<Uint8Array>

getMany

  • getMany(source: AwaitIterable<Key>, options?: undefined | Options): AsyncIterable<Uint8Array>
  • Parameters

    • source: AwaitIterable<Key>
    • options: undefined | Options = {}

    Returns AsyncIterable<Uint8Array>

has

  • has(key: Key, options: undefined | Options): Promise<boolean>
  • Parameters

    • key: Key
    • options: undefined | Options

    Returns Promise<boolean>

open

  • open(): Promise<void>

put

  • put(key: Key, val: Uint8Array, options: undefined | Options): Promise<void>
  • Parameters

    • key: Key
    • val: Uint8Array
    • options: undefined | Options

    Returns Promise<void>

putMany

  • putMany(source: AwaitIterable<Pair>, options?: undefined | Options): AsyncIterable<Pair>
  • Parameters

    • source: AwaitIterable<Pair>
    • options: undefined | Options = {}

    Returns AsyncIterable<Pair>

query

  • query(q: Query, options: undefined | Options): AsyncIterable<Pair>
  • Parameters

    • q: Query
    • options: undefined | Options

    Returns AsyncIterable<Pair>

queryKeys

  • queryKeys(q: KeyQuery, options: undefined | Options): AsyncIterable<Key>
  • Parameters

    • q: KeyQuery
    • options: undefined | Options

    Returns AsyncIterable<Key>