Interface JDBCPool
JDBCPool is the interface that allows using the Sql Client API with plain JDBC.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyKind<Row> Deprecated.static final PropertyKind<RowsList> Property used to get the full list of generated keysstatic final PropertyKind<Boolean> The property to be used to retrieve the output of the callable statement -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Poolpool(Vertx vertx, JDBCConnectOptions connectOptions, PoolOptions poolOptions) Create a JDBC pool which maintains its own data source.static Poolpool(Vertx vertx, DataSource dataSource, PoolOptions poolOptions) Create a JDBC pool using a pre-initialized data source, note this data source does not need to be a pool.Methods inherited from interface Pool
getConnection, preparedQuery, query, size, withConnection, withTransaction, withTransactionMethods inherited from interface SqlClient
close, preparedQuery
-
Field Details
-
GENERATED_KEYS
Deprecated.The property to be used to retrieve the generated keys Only the first row will be present -
GENERATED_KEYS_LIST
Property used to get the full list of generated keys -
OUTPUT
The property to be used to retrieve the output of the callable statement
-
-
Method Details
-
pool
Create a JDBC pool which maintains its own data source.- Parameters:
vertx- the Vert.x instanceconnectOptions- the options to configure the connectionpoolOptions- the connection pool options- Returns:
- the client
-
pool
Create a JDBC pool using a pre-initialized data source, note this data source does not need to be a pool.- Parameters:
vertx- the Vert.x instancedataSource- a pre-initialized data source- Returns:
- the client
- Since:
- 4.2.0
-