Mysqli

Installation

composer require easyswoole/mysqli

Client usage

$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){
    //Build sql
    $client->queryBuilder()->get('user_list');
    //Execute SQL
    var_dump($client->execBuilder());
});

Need to call execBuilder () to execute