Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JDBCPool

JDBCPool is the interface that allows using the Sql Client API with plain JDBC.

Hierarchy

  • any
    • JDBCPool

Index

Properties

Methods

Properties

Static Readonly GENERATED_KEYS

GENERATED_KEYS: PropertyKind<Row>

The property to be used to retrieve the generated keys

Static Readonly OUTPUT

OUTPUT: PropertyKind<boolean>

The property to be used to retrieve the output of the callable statement

Methods

Static pool

  • pool(vertx: Vertx, connectOptions: JDBCConnectOptions, poolOptions: PoolOptions): JDBCPool
  • pool(vertx: Vertx, config: {}): JDBCPool
  • pool(vertx: Vertx, dataSourceProvider: any): JDBCPool
  • pool(vertx: Vertx, dataSource: any): JDBCPool
  • pool(vertx: Vertx, dataSource: any, config: {}): JDBCPool
  • Create a JDBC pool which maintains its own data source.

    Parameters

    Returns JDBCPool

  • Create a JDBC pool which maintains its own data source.

    Parameters

    • vertx: Vertx
    • config: {}
      • [key: string]: any

    Returns JDBCPool

  • Create a JDBC pool which maintains its own data source.

    Parameters

    • vertx: Vertx
    • dataSourceProvider: any

    Returns JDBCPool

  • Create a JDBC pool using a pre-initialized data source.

    Parameters

    • vertx: Vertx
    • dataSource: any

    Returns JDBCPool

  • Create a JDBC pool using a pre-initialized data source. The config expects that at least the following properties are set:

    • url - the connection string
    • user - the connection user name
    • database - the database name
    • maxPoolSize - the max allowed number of connections in the pool

    Parameters

    • vertx: Vertx
    • dataSource: any
    • config: {}
      • [key: string]: any

    Returns JDBCPool

Generated using TypeDoc