Swoole\Mmap::open
Swoole\MySQL::close
Swoole
PHP Manual
The Swoole\MySQL class
(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)
Introduction
Synopsis de la classe
Swoole\MySQL
{
/* Méthodes */
public
void
close
(
void
)
public
void
connect
(
array
$server_config
,
callable
$callback
)
public
void
__destruct
(
void
)
public
ReturnType
getBuffer
(
void
)
public
void
on
(
string
$event_name
,
callable
$callback
)
public
ReturnType
query
(
string
$sql
,
callable
$callback
)
}
Sommaire
Swoole\MySQL::close
— Close the async MySQL connection.
Swoole\MySQL::connect
— Connect to the remote MySQL server.
Swoole\MySQL::__construct
— Construct an async MySQL client.
Swoole\MySQL::__destruct
— Destory the async MySQL client.
Swoole\MySQL::getBuffer
— Description
Swoole\MySQL::on
— Register callback function based on event name.
Swoole\MySQL::query
— Run the SQL query.
Swoole\Mmap::open
Swoole\MySQL::close
Swoole
PHP Manual