Data packet storage based on array.

This is a minimal implementation of DataStore interfaces. It has small code size but every operation has O(N) time complexity.

Implements

Constructors

Methods

  • Delete Data packets with given names.

    Parameters

    • Rest...names: readonly Name[]

    Returns Promise<void>

  • Retrieve Data by exact name.

    Parameters

    Returns Promise<undefined | Data>

  • Insert one or more Data packets.

    Parameters

    • Rest...args: (Data | AnyIterable<Data>)[] | [{}, ...(Data | AnyIterable<Data>)[]]

    Returns Promise<void>

    Arguments include:

    • an optional Options object
    • zero or more Data, Iterable, or AsyncIterable
  • List Data packets, optionally filtered by name prefix.

    Parameters

    • Optionalprefix: Name

    Returns AsyncIterable<Data, any, any>

  • List Data names, optionally filtered by name prefix.

    Parameters

    • Optionalprefix: Name

    Returns AsyncIterable<Name, any, any>