Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SqlClient

Defines common SQL client operations with a database server.

Hierarchy

Index

Methods

close

  • close(): PromiseLike<void>
  • close(handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • Close the client and release the associated resources.

    Returns PromiseLike<void>

  • Close the client and release the associated resources.

    Parameters

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

    Returns void

preparedQuery

  • Create a prepared query, one of the {@link Query#execute} or {@link PreparedQuery#executeBatch} methods must be called to execute the query.

    Parameters

    • sql: string

    Returns PreparedQuery<RowSet<Row>>

  • Create a prepared query, one of the {@link Query#execute} or {@link PreparedQuery#executeBatch} methods must be called to execute the query.

    Parameters

    Returns PreparedQuery<RowSet<Row>>

query

  • Create a query, the {@link Query#execute} method must be called to execute the query.

    Parameters

    • sql: string

    Returns Query<RowSet<Row>>

Generated using TypeDoc