Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReadTransaction

ReadTransactions are used with Replicache.query and allows read operations on the database.

Hierarchy

Implemented by

Index

Methods

Methods

get

  • get(key: string): Promise<JSONValue | undefined>
  • Get a single value from the database. If the key is not present this returns undefined.

    Parameters

    • key: string

    Returns Promise<JSONValue | undefined>

has

  • has(key: string): Promise<boolean>
  • Determines if a single key is present in the database.

    Parameters

    • key: string

    Returns Promise<boolean>

scan

  • scan(options?: ScanOptions): Promise<Iterable<ScanItem>>
  • Gets many values from the database.

    Parameters

    • Optional options: ScanOptions

    Returns Promise<Iterable<ScanItem>>

Generated using TypeDoc