Represents an asynchronous MySQL client
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\asyncsql\AsyncSQLClient
createShared( $arg0, $arg1, $arg2 = null) : \io\vertx\jphp\ext\asyncsql\AsyncSQLClient
param $vertx [Vertx] the Vert.x instance param $config [array] the configuration createShared($vertx, $config)
Create a MySQL client which shares its data source with any other MySQL clients created with the same data source name
param $vertx [Vertx] the Vert.x instance param $config [array] the configuration param $poolName [string] the pool name createShared($vertx, $config, $poolName)
Vertx
array
string
\io\vertx\jphp\ext\asyncsql\AsyncSQLClient
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_POOL_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_HOST
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_PORT
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_DATABASE
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_USER
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_PASSWORD
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_CHARSET
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_CONNECT_TIMEOUT
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_TEST_TIMEOUT
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|