A connection to Postgres.
| package |
Default |
|---|
__construct()
begin() : \io\vertx\jphp\pgclient\Transaction
When the connection is explicitely closed, any inflight transaction is rollbacked.
\io\vertx\jphp\pgclient\Transactionthe transaction instance
cancelRequest( $arg0) : \io\vertx\jphp\pgclient\PgConnection
Note: Use this with caution because the cancellation signal may or may not have any effect.
callable
\io\vertx\jphp\pgclient\PgConnectiona reference to this, so the API can be used fluently
close() : void
closeHandler( $arg0) : $this
callable
$this
connect( $arg0, $arg1, $arg2 = null) : void
param $vertx [Vertx] param $handler [callable] connect($vertx, $handler)
Connects to the database and returns the connection if that succeeds.
The connection interracts directly with the database is not a proxy, so closing the connection will close the underlying connection to the database.
param $vertx [Vertx] the vertx instance param $options [PgConnectOptions | array] the connect options param $handler [callable] the handler called with the connection or the failure connect($vertx, $options, $handler)
Like @see \io\vertx\jphp\pgclient\PgConnection::connect with options build from connectionUri.
param $vertx [Vertx] param $connectionUri [string] param $handler [callable] connect($vertx, $connectionUri, $handler)
Vertx
PgConnectOptions | callable | string | array
callable
exceptionHandler( $arg0) : $this
callable
$this
isSSL() : boolean
booleanwhether the connection uses SSL
notificationHandler( $arg0) : $this
The handler is called with the @see \io\vertx\jphp\pgclient\PgNotification and has access to the channel name and the notification payload.
callable
$thisthe transaction instance
prepare( $arg0, $arg1) : $this
string
callable
$this
preparedBatch( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
preparedQuery( $arg0, $arg1, $arg2 = null) : $this
param $sql [string] param $arguments [Tuple] param $handler [callable] preparedQuery($sql, $arguments, $handler)
string
callable | Tuple
callable
$this
processId() : integer
integerThe process ID of the target backend
query( $arg0, $arg1) : $this
string
callable
$this
secretKey() : integer
integerThe secret key for the target backend