A transaction that allows to control the transaction and receive events.
| package |
Default |
|---|
__construct()
abortHandler( $arg0) : $this
callable
$this
close() : void
commit( $arg0 = null) : void
commit()
Like @see \io\vertx\jphp\sqlclient\Transaction::commit with an handler to be notified when the transaction commit has completed
param $handler [callable] commit($handler)
callable
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
query( $arg0, $arg1) : $this
string
callable
$this
rollback( $arg0 = null) : void
rollback()
Like @see \io\vertx\jphp\sqlclient\Transaction::rollback with an handler to be notified when the transaction rollback has completed
param $handler [callable] rollback($handler)
callable