Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new nanoSQLMemoryIndex(assign?: undefined | false | true, useCache?: undefined | false | true): nanoSQLMemoryIndex

Properties

Optional assign

assign: undefined | false | true

nSQL

plugin

Optional useCache

useCache: undefined | false | true

Methods

addIndexValue

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

    • tableId: string
    • index: string
    • key: any
    • value: any
    • complete: function
        • (): void
        • Returns void

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

          • err: any

          Returns void

    Returns void

connect

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

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

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

          • err: any

          Returns void

    Returns void

createIndex

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

    • tableId: string
    • index: string
    • type: string
    • complete: function
        • (): void
        • Returns void

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

          • err: any

          Returns void

    Returns void

createTable

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

    • tableName: string
    • tableData: InanoSQLTable
    • complete: function
        • (): void
        • Returns void

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

          • err: any

          Returns void

    Returns void

delete

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

    • table: string
    • pk: any
    • complete: function
        • (): void
        • Returns void

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

          • err: any

          Returns void

    Returns void

deleteIndex

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

    • tableId: string
    • index: string
    • complete: function
        • (): void
        • Returns void

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

          • err: any

          Returns void

    Returns void

deleteIndexValue

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

    • tableId: string
    • index: string
    • key: any
    • value: any
    • complete: function
        • (): void
        • Returns void

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

          • err: any

          Returns void

    Returns void

disconnect

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

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

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

          • err: any

          Returns void

    Returns void

dropTable

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

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

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

          • err: any

          Returns void

    Returns void

getTableIndex

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

    • table: string
    • complete: function
        • (index: any[]): void
        • Parameters

          • index: any[]

          Returns void

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

          • err: any

          Returns void

    Returns void

getTableIndexLength

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

    • table: string
    • complete: function
        • (length: number): void
        • Parameters

          • length: number

          Returns void

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

          • err: any

          Returns void

    Returns 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

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

Generated using TypeDoc