Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MSSQLPool

A of [SQL Server connections] MSSQLConnection.

Hierarchy

  • any
    • MSSQLPool

Index

Methods

connectHandler

  • connectHandler(handler: ((res: SqlConnection) => void) | Handler<SqlConnection>): MSSQLPool
  • Parameters

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

    Returns MSSQLPool

connectionProvider

  • connectionProvider(provider: (arg: Context) => PromiseLike<SqlConnection>): MSSQLPool
  • Parameters

    • provider: (arg: Context) => PromiseLike<SqlConnection>
        • (arg: Context): PromiseLike<SqlConnection>
        • Parameters

          • arg: Context

          Returns PromiseLike<SqlConnection>

    Returns MSSQLPool

Static pool

  • Like {@link MSSQLPool#pool} with default options.

    Parameters

    • connectionUri: string

    Returns MSSQLPool

  • Like {@link MSSQLPool#pool} with database built from connectionUri.

    Parameters

    • connectionUri: string
    • options: PoolOptions

    Returns MSSQLPool

  • Like {@link MSSQLPool#pool} with default options.

    Parameters

    • vertx: Vertx
    • connectionUri: string

    Returns MSSQLPool

  • Like {@link MSSQLPool#pool} with database built from connectionUri.

    Parameters

    • vertx: Vertx
    • connectionUri: string
    • options: PoolOptions

    Returns MSSQLPool

  • Create a connection pool to the SQL server database configured with the given options.

    Parameters

    Returns MSSQLPool

  • Like {@link MSSQLPool#pool} with a specific instance.

    Parameters

    Returns MSSQLPool

  • Create a connection pool to the SQL Server databases with round-robin selection. Round-robin is applied when a new connection is created by the pool.

    Parameters

    Returns MSSQLPool

  • Like {@link MSSQLPool#pool} with a specific instance.

    Parameters

    Returns MSSQLPool

  • Create a connection pool to the SQL Server databases. The supplier is called to provide the options when a new connection is created by the pool.

    Parameters

    • databases: any
    • options: PoolOptions

    Returns MSSQLPool

  • Like {@link MSSQLPool#pool} with a specific instance.

    Parameters

    • vertx: Vertx
    • databases: any
    • options: PoolOptions

    Returns MSSQLPool

Generated using TypeDoc