Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Query<T>

A query.

Type parameters

  • T

Hierarchy

Index

Methods

Methods

execute

  • execute(): PromiseLike<T>
  • execute(handler: ((res: AsyncResult<T>) => void) | Handler<AsyncResult<T>>): void
  • Execute the query.

    Returns PromiseLike<T>

  • Execute the query.

    Parameters

    • handler: ((res: AsyncResult<T>) => void) | Handler<AsyncResult<T>>

    Returns void

mapping

  • Use the specified mapper for mapping Row to .

    Type parameters

    • U

    Parameters

    • mapper: (arg: Row) => U
        • (arg: Row): U
        • Parameters

          Returns U

    Returns Query<RowSet<U>>

Generated using TypeDoc