tsbase
    Preparing search index...

    Class IndexedDb

    Implements

    Index

    Properties

    Name: string

    Name of the database to connect to.

    Version: number

    Version of the database to run. Migrations up to and including this version will be executed on connection.

    Accessors

    Methods

    • Get a record by key or records by query from a specified store

      Type Parameters

      • T

      Parameters

      • storeName: string
      • query: string | number | ((t: T) => boolean)

      Returns Promise<Result<null | T | T[]>>