Represents an asynchronous SQL 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
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