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

{Datastore}

Hierarchy

Index

Constructors

constructor

Properties

data

data: Record<string, Uint8Array>

Methods

_all

  • _all(): AsyncGenerator<{ key: Key; value: Uint8Array }, void, undefined>

_allKeys

  • _allKeys(): AsyncGenerator<Key, void, undefined>

batch

  • batch(): Batch

close

  • close(): Promise<void>

delete

  • delete(key: Key): Promise<void>

deleteMany

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

get

  • get(key: Key): Promise<Uint8Array>

getMany

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

has

  • has(key: Key): Promise<boolean>

open

  • open(): Promise<void>

put

  • put(key: Key, val: Uint8Array): 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>

queryKeys

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