Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InanoSQLQueryExec

Hierarchy

  • InanoSQLQueryExec

Implemented by

Index

Constructors

constructor

  • Parameters

    • databaseID: string | undefined
    • nSQL: InanoSQLInstance
    • query: InanoSQLQuery
    • progress: function
        • (row: any, i: number): void
        • Parameters

          • row: any
          • i: number

          Returns void

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

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

          • err: any

          Returns void

    Returns InanoSQLQueryExec

Properties

_groupBy

_groupBy: InanoSQLSortBy

_groupByColumns

_groupByColumns: string[]

_hasAggrFn

_hasAggrFn: any

_havingArgs

_havingArgs: IWhereArgs

_idxOrderBy

_idxOrderBy: boolean

_orderBy

_orderBy: InanoSQLSortBy

_pkOrderBy

_pkOrderBy: boolean

_queryBuffer

_queryBuffer: any[]

_selectArgs

_selectArgs: ISelectArgs[]

_sortGroupKeys

_sortGroupKeys: object

Type declaration

  • [groupKey: string]: number

_sortGroups

_sortGroups: any[][]

_stream

_stream: boolean

_whereArgs

_whereArgs: IWhereArgs

complete

complete: function

Type declaration

    • (): void
    • Returns void

databaseID

databaseID: string | undefined

error

error: function

Type declaration

    • (err: any): void
    • Parameters

      • err: any

      Returns void

nSQL

progress

progress: function

Type declaration

    • (row: any, i: number): void
    • Parameters

      • row: any
      • i: number

      Returns void

query

Static _selectArgsMemoized

_selectArgsMemoized: object

Type declaration

  • [key: string]: object

Static _sortMemoized

_sortMemoized: object

Type declaration

Static _whereMemoized

_whereMemoized: object

Type declaration

Static likeCache

likeCache: object

Type declaration

  • [likeQuery: string]: RegExp

Methods

_compare

  • _compare(where: any, wholeRow: any, isJoin: any): any
  • Parameters

    • where: any
    • wholeRow: any
    • isJoin: any

    Returns any

_createTable

  • _createTable(table: InanoSQLTableConfig, alterTable: boolean, onRow: function, complete: function, error: function): void
  • Parameters

    • table: InanoSQLTableConfig
    • alterTable: boolean
    • onRow: function
        • (row: any, i: number): void
        • Parameters

          • row: any
          • i: number

          Returns void

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

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

          • err: any

          Returns void

    Returns void

_delete

  • _delete(onRow: any, complete: any, error: any): any
  • Parameters

    • onRow: any
    • complete: any
    • error: any

    Returns any

_describe

  • _describe(): any

_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

_fastQuery

  • _fastQuery(onRow: any, complete: any): any

_getColValue

  • _getColValue(where: any, wholeRow: any, isJoin: any): any
  • Parameters

    • where: any
    • wholeRow: any
    • isJoin: any

    Returns any

_getIndexValues

  • _getIndexValues(indexes: any, row: any): any

_getRecords

  • _getRecords(onRow: function, complete: function, error: function): void
  • Parameters

    • onRow: function
        • (row: object, i: number): void
        • Parameters

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

          Returns void

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

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

          • err: any

          Returns void

    Returns void

_groupByRows

  • _groupByRows(): any

_maybeJoin

  • _maybeJoin(joinData: any, leftRow: any, onRow: any, complete: any): any
  • Parameters

    • joinData: any
    • leftRow: any
    • onRow: any
    • complete: any

    Returns any

_newRow

  • _newRow(newRow: any, complete: any, error: any): any
  • Parameters

    • newRow: any
    • complete: any
    • error: any

    Returns any

_onError

  • _onError(err: any): any

_orderByRows

  • _orderByRows(a: any, b: any): any

_parseSelect

  • _parseSelect(): any

_parseSort

  • _parseSort(sort: any, checkforIndexes: any): any

_parseWhere

  • _parseWhere(qWhere: any, ignoreIndexes?: any): any
  • Parameters

    • qWhere: any
    • Optional ignoreIndexes: any

    Returns any

_processLIKE

  • _processLIKE(columnValue: any, givenValue: any): any
  • Parameters

    • columnValue: any
    • givenValue: any

    Returns any

_rebuildIndexes

  • _rebuildIndexes(table: any, complete: any, error: any): any
  • Parameters

    • table: any
    • complete: any
    • error: any

    Returns any

_resolveFastWhere

  • _resolveFastWhere(onlyPKs: any, table: any, fastWhere: any, isReversed: any, orderByPK: any, onRow: any, complete: any): any
  • Parameters

    • onlyPKs: any
    • table: any
    • fastWhere: any
    • isReversed: any
    • orderByPK: any
    • onRow: any
    • complete: any

    Returns any

_select

  • _select(complete: any, onError: any): any

_showTables

  • _showTables(): any

_sortObj

  • _sortObj(objA: any, objB: any, columns: any): any
  • Parameters

    • objA: any
    • objB: any
    • columns: any

    Returns any

_streamAS

  • _streamAS(row: any, isJoin: any): any

_updateRow

  • _updateRow(newData: any, oldRow: any, complete: any, error: any): any
  • Parameters

    • newData: any
    • oldRow: any
    • complete: any
    • error: any

    Returns any

_upsert

  • _upsert(onRow: any, complete: any, error: any): any
  • Parameters

    • onRow: any
    • complete: any
    • error: any

    Returns any

_where

  • _where(singleRow: any, where: any, ignoreFirstPath: any): any
  • Parameters

    • singleRow: any
    • where: any
    • ignoreFirstPath: any

    Returns any

Generated using TypeDoc