PHP Class Amp\Mysql\ConnectionPool

Show file Open project: amphp/mysql

Public Methods

Method Description
__construct ( $config, $limit )
__destruct ( )
addConnection ( )
close ( )
extractConnection ( )
getConnectionPromise ( )
getReadyConnection ( ) : Amp\Mysql\Connection
setCharset ( $charset, $collate = "" ) First parameter may be collation too, then charset is determined by the prefix of collation
useExceptions ( $set )

Private Methods

Method Description
ready ( $conn )
unmapConnection ( $conn ) * This method might be called multiple times with the same hash. Important is that it's unmapped immediately

Method Details

__construct() public method

public __construct ( $config, $limit )

__destruct() public method

public __destruct ( )

addConnection() public method

public addConnection ( )

close() public method

public close ( )

extractConnection() public method

public extractConnection ( )

getConnectionPromise() public method

getReadyConnection() public method

public getReadyConnection ( ) : Amp\Mysql\Connection
return Amp\Mysql\Connection

setCharset() public method

First parameter may be collation too, then charset is determined by the prefix of collation
public setCharset ( $charset, $collate = "" )

useExceptions() public method

public useExceptions ( $set )