Mysqli
安装
composer require easyswoole/mysqli
Client 用法
$config = new \EasySwoole\Mysqli\Config([
'host' => '',
'port' => 3300,
'user' => '',
'password' => '',
'database' => '',
'timeout' => 5,
'charset' => 'utf8mb4',
]);
$client = new \EasySwoole\Mysqli\Client($config);
go(function ()use($client){
//构建sql
$client->queryBuilder()->get('user_list');
//执行sql
var_dump($client->execBuilder());
});
需要调用execBuilder()才会执行
当前内容版权归 EasySwoole 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 EasySwoole .