Pool

A pool of SQL connections.

package

Default

Methods

__construct

__construct() 

Borrow a connection from the pool and begin a transaction, the underlying connection will be returned to the pool when the transaction ends.

begin( $arg0) : void

Arguments

$arg0

callable

Close the pool and release the associated resources.

close() : void

Get a connection from the pool.

getConnection( $arg0) : void

Arguments

$arg0

callable

preparedBatch

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

Arguments

$arg0

string

$arg1

array

$arg2

callable

Response

$this

param $sql [string] param $handler [callable] <b> preparedQuery($sql, $handler) </b>

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

param $sql [string] param $arguments [Tuple] param $handler [callable] preparedQuery($sql, $arguments, $handler)

Arguments

$arg0

string

$arg1

callable | Tuple

$arg2

callable

Response

$this

query

query( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

callable

Response

$this