Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Query

Index

Constructors

Properties

_connection: mariadb.Connection

Methods

  • affectedRows(): number
  • clusterQuery<T, V>(sql: string | QueryOptions, values?: Partial<V>): Promise<T>
  • clusterQueryStream<V>(sql: string | QueryOptions, values?: Partial<V>): Promise<Readable>
  • Type Parameters

    • V = Record<string, any>

    Parameters

    Returns Promise<Readable>

  • clusterUpdate<T, V>(table: T, where: string, params: Partial<V>, options?: { ignore?: boolean }): Promise<UpsertResult>
  • Type Parameters

    • T extends string

    • V = Record<string, any>

    Parameters

    • table: T
    • where: string
    • params: Partial<V>
    • Optional options: { ignore?: boolean }
      • Optional ignore?: boolean

    Returns Promise<UpsertResult>

  • end(): Promise<void>
  • getConnectionCluster(pattern?: string, selector?: string): Promise<Connection>
  • lastInsertId<T>(): T
  • poolQuery<T, V>(sql: string | QueryOptions, values?: Partial<V>): Promise<T>
  • poolQueryStream<V>(sql: string | QueryOptions, values?: Partial<V>): Promise<Readable>
  • Type Parameters

    • V = Record<string, any>

    Parameters

    Returns Promise<Readable>

  • poolUpdate<T, V>(table: T, where: string, params: Partial<V>, options?: { exclude?: string[]; ignore?: boolean }): Promise<UpsertResult>
  • Type Parameters

    • T extends string

    • V = Record<string, any>

    Parameters

    • table: T
    • where: string
    • params: Partial<V>
    • Optional options: { exclude?: string[]; ignore?: boolean }
      • Optional exclude?: string[]
      • Optional ignore?: boolean

    Returns Promise<UpsertResult>

  • query<T, V>(sql: string | QueryOptions, values?: Partial<V>): Promise<T>
  • queryStream<V>(sql: string | QueryOptions, values?: Partial<V>): Promise<Readable>
  • Type Parameters

    • V = Record<string, any>

    Parameters

    Returns Promise<Readable>

  • quote(input: any): string
  • statistics(): { count: number; queries: QueriesInfo[]; time: number }
  • warningStatus(): number

Generated using TypeDoc