An asynchronous client interface for interacting with a JDBC compliant database
package |
Default |
---|
__construct()
call( $arg0, $arg1) : $this
string
callable
$this
callWithParams( $arg0, $arg1, $arg2, $arg3) : $this
The index of params and outputs are important for both arrays, for example when dealing with a prodecure that takes the first 2 arguments as input values and the 3 arg as an output then the arrays should be like:
params = [VALUE1, VALUE2, null] outputs = [null, null, "VARCHAR"]
string
array
array
callable
$this
close( $arg0 = null) : void
close()
Close the client and release all resources. Call the handler when close is complete.
param $handler [callable] the handler that will be called when close is complete close($handler)
callable
createNonShared( $arg0, $arg1) : \io\vertx\jphp\ext\jdbc\JDBCClient
createShared( $arg0, $arg1, $arg2 = null) : \io\vertx\jphp\ext\jdbc\JDBCClient
param $vertx [Vertx] the Vert.x instance param $config [array] the configuration createShared($vertx, $config)
Create a JDBC client which shares its data source with any other JDBC clients created with the same data source name
param $vertx [Vertx] the Vert.x instance param $config [array] the configuration param $dataSourceName [string] the data source name createShared($vertx, $config, $dataSourceName)
Vertx
array
string
\io\vertx\jphp\ext\jdbc\JDBCClient
the client
getConnection( $arg0) : $this
callable
$this
query( $arg0, $arg1) : $this
string
callable
$this
self
querySingle( $arg0, $arg1) : $this
string
callable
$this
self
querySingleWithParams( $arg0, $arg1, $arg2) : $this
Only the first result from the result set is returned.
string
array
callable
$this
self
queryStream( $arg0, $arg1) : $this
string
callable
$this
queryStreamWithParams( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
queryWithParams( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
self
update( $arg0, $arg1) : $this
string
callable
$this
updateWithParams( $arg0, $arg1, $arg2) : $this
string
array
callable
$this
DEFAULT_PROVIDER_CLASS
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_DS_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|