public interface PostgreSQLClient extends AsyncSQLClient
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET
The default charset.
|
static long |
DEFAULT_CONNECT_TIMEOUT
The default timeout for connect.
|
static String |
DEFAULT_DATABASE
The default database name.
|
static String |
DEFAULT_DS_NAME
The default name used for the PostGreSQL pool.
|
static String |
DEFAULT_HOST
The default host.
|
static String |
DEFAULT_PASSWORD
The default user password.
|
static int |
DEFAULT_PORT
The default port.
|
static long |
DEFAULT_TEST_TIMEOUT
The default timeout for tests.
|
static String |
DEFAULT_USER
The default database user.
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncSQLClient |
createNonShared(Vertx vertx,
JsonObject config)
Create a PostgreSQL client which maintains its own pool.
|
static AsyncSQLClient |
createShared(Vertx vertx,
JsonObject config)
Like
createShared(io.vertx.core.Vertx, JsonObject, String) but with the default pool name |
static AsyncSQLClient |
createShared(Vertx vertx,
JsonObject config,
String poolName)
Create a PostgreSQL client which shares its pool with any other MySQL clients created with the same pool name.
|
call, callWithParams, close, close, getConnection, query, queryStream, queryStreamWithParams, queryWithParams, update, updateWithParamsquerySingle, querySingleWithParamsstatic final String DEFAULT_DS_NAME
static final String DEFAULT_HOST
static final int DEFAULT_PORT
static final String DEFAULT_DATABASE
static final String DEFAULT_USER
static final String DEFAULT_PASSWORD
static final String DEFAULT_CHARSET
static final long DEFAULT_CONNECT_TIMEOUT
static final long DEFAULT_TEST_TIMEOUT
static AsyncSQLClient createNonShared(Vertx vertx, JsonObject config)
vertx - the Vert.x instanceconfig - the configurationstatic AsyncSQLClient createShared(Vertx vertx, JsonObject config, String poolName)
vertx - the Vert.x instanceconfig - the configurationpoolName - the pool namestatic AsyncSQLClient createShared(Vertx vertx, JsonObject config)
createShared(io.vertx.core.Vertx, JsonObject, String) but with the default pool namevertx - the Vert.x instanceconfig - the configurationCopyright © 2021 Eclipse. All rights reserved.