1 Star 0 Fork 0

dlpc / mysql-async

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 498 Bytes
一键复制 编辑 原始数据 按行查看 历史
韩天峰 提交于 2015-04-27 21:55 . Update README.md

mysql-async

Async mysql client for PHP.

Install

  1. compile swoole with --enable-async-mysql
  2. git clone https://github.com/swoole/mysql-async

Usage

$config = array(
    'host' => '127.0.0.1',
    'user' => 'root',
    'password' => 'root',
    'database' => 'test',
);
$pool = new Swoole\Async\MySQL($config, 100);
for($i = 0; $i < 10000; $i++)
{
    $pool->query("show tables", function($mysqli, mysqli_result $result){
        var_dump($result->fetch_all());
    });
}
1
https://gitee.com/dlpc/mysql-async.git
git@gitee.com:dlpc/mysql-async.git
dlpc
mysql-async
mysql-async
master

搜索帮助