SqlClient

Defines the client operations with a database server.

package

Default

Methods

__construct

__construct() 

Close the client and release the associated resources.

close() : void

Prepare and execute a createBatch.

preparedBatch( $arg0,  $arg1,  $arg2) : $this

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

a reference to this, so the API can be used fluently

Prepare and execute a query.

preparedQuery( $arg0,  $arg1,  $arg2 = null) : $this

param $sql [string] the prepared query SQL param $handler [callable] the handler notified with the execution result preparedQuery($sql, $handler)

Prepare and execute a query.

param $sql [string] the prepared query SQL param $arguments [Tuple] the list of arguments param $handler [callable] the handler notified with the execution result preparedQuery($sql, $arguments, $handler)

Arguments

$arg0

string

$arg1

callable | Tuple

$arg2

callable

Response

$this

a reference to this, so the API can be used fluently

Execute a simple query.

query( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this

a reference to this, so the API can be used fluently