Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MySQLPool

A of [MySQL Connections] MySQLConnection.

Hierarchy

  • any
    • MySQLPool

Index

Methods

connectHandler

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

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

    Returns MySQLPool

connectionProvider

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

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

          • arg: Context

          Returns PromiseLike<SqlConnection>

    Returns MySQLPool

Static client

  • client(connectionUri: string): SqlClient
  • client(connectionUri: string, poolOptions: PoolOptions): SqlClient
  • client(vertx: Vertx, connectionUri: string): SqlClient
  • client(vertx: Vertx, connectionUri: string, poolOptions: PoolOptions): SqlClient
  • client(connectOptions: MySQLConnectOptions, poolOptions: PoolOptions): SqlClient
  • client(vertx: Vertx, connectOptions: MySQLConnectOptions, poolOptions: PoolOptions): SqlClient
  • client(vertx: Vertx, mySQLConnectOptions: MySQLConnectOptions, options: PoolOptions): SqlClient
  • client(databases: MySQLConnectOptions, options: PoolOptions): SqlClient
  • client(vertx: Vertx, mySQLConnectOptions: any, options: PoolOptions): SqlClient
  • client(databases: any, options: PoolOptions): SqlClient
  • Like {@link MySQLPool#client} with a default poolOptions.

    Parameters

    • connectionUri: string

    Returns SqlClient

  • Like {@link MySQLPool#client} with connectOptions build from connectionUri.

    Parameters

    • connectionUri: string
    • poolOptions: PoolOptions

    Returns SqlClient

  • Like {@link MySQLPool#client} with a default poolOptions.

    Parameters

    • vertx: Vertx
    • connectionUri: string

    Returns SqlClient

  • Like {@link MySQLPool#client} with connectOptions build from connectionUri.

    Parameters

    • vertx: Vertx
    • connectionUri: string
    • poolOptions: PoolOptions

    Returns SqlClient

  • Create a client backed by a connection pool to the database configured with the given connectOptions and poolOptions.

    Parameters

    Returns SqlClient

  • Like {@link MySQLPool#client} with a specific instance.

    Parameters

    Returns SqlClient

  • Like {@link MySQLPool#client} with a specific instance.

    Parameters

    Returns SqlClient

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

    Parameters

    Returns SqlClient

  • Like {@link MySQLPool#client} with a specific instance.

    Parameters

    • vertx: Vertx
    • mySQLConnectOptions: any
    • options: PoolOptions

    Returns SqlClient

  • Create a client backed by a connection pool to the MySQL databases. The supplier is called to provide the options when a new connection is created by the pool.

    Parameters

    • databases: any
    • options: PoolOptions

    Returns SqlClient

Static pool

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

    Parameters

    • connectionUri: string

    Returns MySQLPool

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

    Parameters

    • connectionUri: string
    • options: PoolOptions

    Returns MySQLPool

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

    Parameters

    • vertx: Vertx
    • connectionUri: string

    Returns MySQLPool

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

    Parameters

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

    Returns MySQLPool

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

    Parameters

    Returns MySQLPool

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

    Parameters

    Returns MySQLPool

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

    Parameters

    Returns MySQLPool

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

    Parameters

    Returns MySQLPool

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

    Parameters

    • databases: any
    • options: PoolOptions

    Returns MySQLPool

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

    Parameters

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

    Returns MySQLPool

Generated using TypeDoc