Options
Menu

Class IdbStorageAdapter

The default implementation for data persistence in offline mode. This storage adapter uses IndexedDB under the hood to store all data.

Hierarchy

  • IdbStorageAdapter

Implements

Index

Methods

adapterId

  • adapterId(): string
  • Returns the unique id of this storage adapter. Each adapter class implementation must provide a unique id.

    Returns string

destroy

  • destroy(): void
  • Removes the underlying storage behind this store, deleting all data. The storage adapter will be disposed after calling destroy.

    Returns void

dispose

  • dispose(): void
  • Disposes of this storage adapter, releasing any resources. Calls to the storage after calling dispose will likely throw errors.

    Returns void

identityStore

initialize

  • initialize(namespace: string, domainId: string, username: string): Promise<void>
  • Initializes the offline data store. The storage will be created if it does not exists.

    Parameters

    • namespace: string

      The namespace of the domain being opened.

    • domainId: string

      The id of the domain being opened.

    • username: string

      The user name of the user opening the store.

    Returns Promise<void>

isDisposed

  • isDisposed(): boolean
  • Determines if the storage is disposed.

    Returns boolean

    true if the storage is disposed, false otherwise.

isInitialized

  • isInitialized(): boolean
  • Determines if the storage is initialized.

    Returns boolean

    true if the storage is initialized, false otherwise.

modelStore