PHP Class Swoole\Async\MySQL

Show file Open project: matyhtf/swoole_framework

Public Methods

Method Description
__construct ( $config, $maxConnection = 100 )
__destruct ( )
close ( ) 关闭连接池
isFree ( )
query ( $sql, callable $callabck )

Protected Methods

Method Description
connect ( )

Method Details

__construct() public method

public __construct ( $config, $maxConnection = 100 )

__destruct() public method

public __destruct ( )

close() public method

关闭连接池
public close ( )

connect() protected method

protected connect ( )

isFree() public method

public isFree ( )

query() public method

public query ( $sql, callable $callabck )
$callabck callable