Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MSSQLConnection

A connection to Microsoft SQL Server.

Hierarchy

  • any
    • MSSQLConnection

Index

Methods

closeHandler

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

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

    Returns MSSQLConnection

exceptionHandler

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

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

    Returns MSSQLConnection

infoHandler

  • Set a handler called when the connection receives an informational message from the server.

    Parameters

    Returns MSSQLConnection

prepare

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

    • s: string

    Returns PromiseLike<PreparedStatement>

  • Parameters

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

    Returns MSSQLConnection

Static cast

  • Cast a to MSSQLConnection.

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

    Parameters

    • sqlConnection: SqlConnection

    Returns MSSQLConnection

Static connect

  • Create a connection to SQL Server with the given connectOptions.

    Parameters

    Returns PromiseLike<MSSQLConnection>

  • Create a connection to SQL Server with the given connectOptions.

    Parameters

    Returns void

  • Like {@link MSSQLConnection#connect} with options built from connectionUri.

    Parameters

    • vertx: Vertx
    • connectionUri: string

    Returns PromiseLike<MSSQLConnection>

  • Like {@link MSSQLConnection#connect} with options built from connectionUri.

    Parameters

    Returns void

Generated using TypeDoc