Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Storage

Hierarchy

  • Storage

Index

Properties

db

sqlite3-storage Database object

length

length: number

Return the number of items stored.

storageName

storageName: string

Storage name. This name is used for the table name.

Methods

__@iterator

at

  • Return the key and value corresponding to the index

    Parameters

    • index: number

      a zero-based index

    Returns KeyValue | null

clear

  • clear(): void
  • Clear items. All items will be deleted.

    Returns void

getItem

  • getItem(key: string): string | null
  • Get the item with the specified key. The order is ROWID of the table.

    Parameters

    • key: string

      key name

    Returns string | null

key

  • key(index: number): string | null
  • Return the key corresponding to the index

    Parameters

    • index: number

      a zero-based index

    Returns string | null

removeItem

  • removeItem(key: string): void
  • Remove the item with the specified key.

    Parameters

    • key: string

      key name

    Returns void

setItem

  • setItem(key: string, value: string): void
  • Set item.

    Parameters

    • key: string
    • value: string

    Returns void

Generated using TypeDoc