PHP Class Amp\Mysql\ConnectionPool

Afficher le fichier Open project: amphp/mysql

Méthodes publiques

Méthode 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

Méthode 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 méthode

public __construct ( $config, $limit )

__destruct() public méthode

public __destruct ( )

addConnection() public méthode

public addConnection ( )

close() public méthode

public close ( )

extractConnection() public méthode

public extractConnection ( )

getConnectionPromise() public méthode

getReadyConnection() public méthode

public getReadyConnection ( ) : Amp\Mysql\Connection
Résultat Amp\Mysql\Connection

setCharset() public méthode

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

useExceptions() public méthode

public useExceptions ( $set )