Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new IndexedDB(version?: undefined | number): IndexedDB

Properties

Optional assign

assign: undefined | false | true

nSQL

Optional useCache

useCache: undefined | false | true

Optional version

version: undefined | number

Methods

addIndexValue

  • addIndexValue(tableId: string, index: string, key: any, value: any, complete: function, error: function): void

batch

  • batch(table: string, actions: object[], success: function, error: function): void
  • Parameters

    • table: string
    • actions: object[]
    • success: function
        • (result: any[]): void
        • Parameters

          • result: any[]

          Returns void

    • error: function
        • (msg: any): void
        • Parameters

          • msg: any

          Returns void

    Returns void

connect

  • connect(id: string, complete: function, error: function): void

createIndex

  • createIndex(tableId: string, index: string, type: string, complete: function, error: function): void

createTable

  • createTable(tableName: string, tableData: InanoSQLTable, complete: function, error: function): void

delete

  • delete(table: string, pk: any, complete: function, error: function): void

deleteIndex

  • deleteIndex(tableId: string, index: string, complete: function, error: function): void

deleteIndexValue

  • deleteIndexValue(tableId: string, index: string, key: any, value: any, complete: function, error: function): void

disconnect

  • disconnect(complete: function, error: function): void

dropTable

  • dropTable(table: string, complete: function, error: function): void

getTableIndex

  • getTableIndex(table: string, complete: function, error: function): void

getTableIndexLength

  • getTableIndexLength(table: string, complete: function, error: function): void

read

  • read(table: string, pk: any, complete: function, error: function): void
  • Parameters

    • table: string
    • pk: any
    • complete: function
        • (row: object | undefined): void
        • Parameters

          • row: object | undefined

          Returns void

    • error: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

readIndexKey

  • readIndexKey(tableId: string, index: string, pk: any, onRowPK: function, complete: function, error: function): void
  • Parameters

    • tableId: string
    • index: string
    • pk: any
    • onRowPK: function
        • (pk: any): void
        • Parameters

          • pk: any

          Returns void

    • complete: function
        • (): void
        • Returns void

    • error: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

readIndexKeys

  • readIndexKeys(tableId: string, index: string, type: "range" | "offset" | "all", offsetOrLow: any, limitOrHigh: any, reverse: boolean, onRowPK: function, complete: function, error: function): void
  • Parameters

    • tableId: string
    • index: string
    • type: "range" | "offset" | "all"
    • offsetOrLow: any
    • limitOrHigh: any
    • reverse: boolean
    • onRowPK: function
        • (key: any, id: any): void
        • Parameters

          • key: any
          • id: any

          Returns void

    • complete: function
        • (): void
        • Returns void

    • error: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

readMulti

  • readMulti(table: string, type: "range" | "offset" | "all", offsetOrLow: any, limitOrHigh: any, reverse: boolean, onRow: function, complete: function, error: function): void
  • Parameters

    • table: string
    • type: "range" | "offset" | "all"
    • offsetOrLow: any
    • limitOrHigh: any
    • reverse: boolean
    • onRow: function
        • (row: object, i: number): void
        • Parameters

          • row: object
            • [key: string]: any
          • i: number

          Returns void

    • complete: function
        • (): void
        • Returns void

    • error: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

store

  • store(table: string, type: IDBTransactionMode, open: function, error: function): void
  • Parameters

    • table: string
    • type: IDBTransactionMode
    • open: function
        • (tr: IDBTransaction, store: IDBObjectStore): void
        • Parameters

          • tr: IDBTransaction
          • store: IDBObjectStore

          Returns void

    • error: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

write

  • write(table: string, pk: any, row: object, complete: function, error: function): void
  • Parameters

    • table: string
    • pk: any
    • row: object
      • [key: string]: any
    • complete: function
        • (pk: any): void
        • Parameters

          • pk: any

          Returns void

    • error: function
        • (err: any): void
        • Parameters

          • err: any

          Returns void

    Returns void

Object literals

plugin

plugin: object

name

name: string = "IndexedDB Adapter"

version

version: number = VERSION

Generated using TypeDoc