Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DB2Connection

A connection to DB2 server.

Hierarchy

  • any
    • DB2Connection

Index

Methods

closeHandler

  • closeHandler(handler: ((res: void) => void) | Handler<void>): DB2Connection
  • Parameters

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

    Returns DB2Connection

debug

  • debug(): PromiseLike<void>
  • debug(handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): DB2Connection
  • Send a DEBUG command to dump debug information to the server's stdout.

    Returns PromiseLike<void>

  • Send a DEBUG command to dump debug information to the server's stdout.

    Parameters

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

    Returns DB2Connection

exceptionHandler

  • exceptionHandler(handler: ((res: Throwable) => void) | Handler<Throwable>): DB2Connection
  • Parameters

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

    Returns DB2Connection

ping

  • ping(): PromiseLike<void>
  • ping(handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): DB2Connection
  • Send a PING command to check if the server is alive.

    Returns PromiseLike<void>

  • Send a PING command to check if the server is alive.

    Parameters

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

    Returns DB2Connection

prepare

  • prepare(sql: string): PromiseLike<PreparedStatement>
  • prepare(sql: string, handler: ((res: AsyncResult<PreparedStatement>) => void) | Handler<AsyncResult<PreparedStatement>>): DB2Connection
  • Parameters

    • sql: string

    Returns PromiseLike<PreparedStatement>

  • Parameters

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

    Returns DB2Connection

Static cast

  • Cast a to DB2Connection.

    This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.

    Parameters

    • sqlConnection: SqlConnection

    Returns DB2Connection

Static connect

  • Create a connection to DB2 server with the given connectOptions.

    Parameters

    Returns PromiseLike<DB2Connection>

  • Create a connection to DB2 server with the given connectOptions.

    Parameters

    Returns void

  • Like {@link DB2Connection#connect} with options build from connectionUri.

    Parameters

    • vertx: Vertx
    • connectionUri: string

    Returns PromiseLike<DB2Connection>

  • Like {@link DB2Connection#connect} with options build from connectionUri.

    Parameters

    Returns void

Generated using TypeDoc