public class PostgreSQLClient extends AsyncSQLClient
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<PostgreSQLClient> |
__TYPE_ARG |
| Constructor and Description |
|---|
PostgreSQLClient(PostgreSQLClient delegate) |
| 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.reactivex.core.Vertx, io.vertx.core.json.JsonObject, java.lang.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.
|
boolean |
equals(Object o) |
PostgreSQLClient |
getDelegate() |
int |
hashCode() |
static PostgreSQLClient |
newInstance(PostgreSQLClient arg) |
SQLOperations |
querySingle(String sql,
Handler<AsyncResult<JsonArray>> handler)
Execute a one shot SQL statement that returns a single SQL row.
|
SQLOperations |
querySingleWithParams(String sql,
JsonArray arguments,
Handler<AsyncResult<JsonArray>> handler)
Execute a one shot SQL statement with arguments that returns a single SQL row.
|
Maybe<JsonArray> |
rxQuerySingle(String sql)
Execute a one shot SQL statement that returns a single SQL row.
|
Maybe<JsonArray> |
rxQuerySingleWithParams(String sql,
JsonArray arguments)
Execute a one shot SQL statement with arguments that returns a single SQL row.
|
String |
toString() |
newInstancecall, callWithParams, close, close, getConnection, newInstance, query, queryWithParams, rxCall, rxCallWithParams, rxClose, rxGetConnection, rxQuery, rxQueryWithParams, rxUpdate, rxUpdateWithParams, update, updateWithParamsclone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstancepublic static final TypeArg<PostgreSQLClient> __TYPE_ARG
public PostgreSQLClient(PostgreSQLClient delegate)
public String toString()
toString in class AsyncSQLClientpublic boolean equals(Object o)
equals in class AsyncSQLClientpublic int hashCode()
hashCode in class AsyncSQLClientpublic PostgreSQLClient getDelegate()
getDelegate in interface SQLOperationsgetDelegate in class AsyncSQLClientpublic SQLOperations querySingle(String sql, Handler<AsyncResult<JsonArray>> handler)
SQLClientquerySingle in interface SQLOperationsquerySingle in class AsyncSQLClientsql - the statement to executehandler - the result handlerpublic Maybe<JsonArray> rxQuerySingle(String sql)
SQLClientrxQuerySingle in class AsyncSQLClientsql - the statement to executepublic SQLOperations querySingleWithParams(String sql, JsonArray arguments, Handler<AsyncResult<JsonArray>> handler)
SQLClientquerySingleWithParams in interface SQLOperationsquerySingleWithParams in class AsyncSQLClientsql - the statement to executearguments - the argumentshandler - the result handlerpublic Maybe<JsonArray> rxQuerySingleWithParams(String sql, JsonArray arguments)
SQLClientrxQuerySingleWithParams in class AsyncSQLClientsql - the statement to executearguments - the argumentspublic static AsyncSQLClient createNonShared(Vertx vertx, JsonObject config)
vertx - the Vert.x instanceconfig - the configurationpublic static AsyncSQLClient createShared(Vertx vertx, JsonObject config, String poolName)
vertx - the Vert.x instanceconfig - the configurationpoolName - the pool namepublic static AsyncSQLClient createShared(Vertx vertx, JsonObject config)
createShared(io.vertx.reactivex.core.Vertx, io.vertx.core.json.JsonObject, java.lang.String) but with the default pool namevertx - the Vert.x instanceconfig - the configurationpublic static PostgreSQLClient newInstance(PostgreSQLClient arg)
Copyright © 2018 Eclipse. All rights reserved.