public interface JDBCClient extends SQLClient
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DS_NAME
The name of the default data source
|
static String |
DEFAULT_PROVIDER_CLASS
The default data source provider for this pool,
loaded from JVM system properties with the
DataSourceProvider.DEFAULT_DATA_SOURCE_PROVIDER_NAME key. |
| Modifier and Type | Method and Description |
|---|---|
static JDBCClient |
create(Vertx vertx,
DataSource dataSource)
Create a client using a pre-existing data source
|
static JDBCClient |
create(Vertx vertx,
DataSourceProvider dataSourceProvider)
Create a client using a data source provider
|
static JDBCClient |
create(Vertx vertx,
JsonObject config)
Create a JDBC client which maintains its own data source.
|
static JDBCClient |
createShared(Vertx vertx,
JsonObject config)
Like
createShared(io.vertx.core.Vertx, JsonObject, String) but with the default data source name |
static JDBCClient |
createShared(Vertx vertx,
JsonObject config,
String dataSourceName)
Create a JDBC client which shares its data source with any other JDBC clients created with the same
data source name
|
call, callWithParams, close, close, getConnection, query, queryStream, queryStreamWithParams, queryWithParams, update, updateWithParamsquerySingle, querySingleWithParamsstatic final String DEFAULT_PROVIDER_CLASS
DataSourceProvider.DEFAULT_DATA_SOURCE_PROVIDER_NAME key.
The value can be one of:
C3P0DataSourceProviderHikariCPDataSourceProviderAgroalCPDataSourceProviderC3P0DataSourceProvider is returned.static final String DEFAULT_DS_NAME
static JDBCClient create(Vertx vertx, JsonObject config)
vertx - the Vert.x instanceconfig - the configurationstatic JDBCClient createShared(Vertx vertx, JsonObject config, String dataSourceName)
vertx - the Vert.x instanceconfig - the configurationdataSourceName - the data source namestatic JDBCClient createShared(Vertx vertx, JsonObject config)
createShared(io.vertx.core.Vertx, JsonObject, String) but with the default data source namevertx - the Vert.x instanceconfig - the configurationstatic JDBCClient create(Vertx vertx, DataSource dataSource)
vertx - the Vert.x instancedataSource - the datasourcestatic JDBCClient create(Vertx vertx, DataSourceProvider dataSourceProvider)
vertx - the Vert.x instancedataSourceProvider - the datasource providerCopyright © 2025 Eclipse. All rights reserved.