Options
All
  • Public
  • Public/Protected
  • All
Menu

Class _nanoSQLObserverQuery

Hierarchy

  • _nanoSQLObserverQuery

Implements

Index

Constructors

constructor

  • Parameters

    • databaseID: string
    • query: InanoSQLQuery
    • Default value debounce: number = 500
    • Default value unique: boolean = false
    • Default value compareFn: function = equal
        • (rowsA: any[], rowsB: any[]): boolean
        • Parameters

          • rowsA: any[]
          • rowsB: any[]

          Returns boolean

    Returns _nanoSQLObserverQuery

Properties

compareFn

compareFn: function

Type declaration

    • (rowsA: any[], rowsB: any[]): boolean
    • Parameters

      • rowsA: any[]
      • rowsB: any[]

      Returns boolean

databaseID

databaseID: string

debounce

debounce: number

query

unique

unique: boolean

Methods

exec

  • exec(callback: function, events?: undefined | false | true): void
  • Parameters

    • callback: function
        • (rows: any[], error?: any): void
        • Parameters

          • rows: any[]
          • Optional error: any

          Returns void

    • Optional events: undefined | false | true

    Returns void

stream

  • stream(onRow: function, complete: function, error: function, events?: undefined | false | true): void
  • Parameters

    • onRow: function
        • (row: any): void
        • Parameters

          • row: any

          Returns void

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

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

          • err: any

          Returns void

    • Optional events: undefined | false | true

    Returns void

trigger

  • trigger(): void

unsubscribe

  • unsubscribe(): void

Generated using TypeDoc