for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hhxsv5\LaravelS\Illuminate\Database;
use Illuminate\Database\MySqlConnection;
class CoroutineMySQLConnection extends MySqlConnection
{
/**
* The active swoole mysql connection.
*
* @var CoroutineMySQL
*/
protected $pdo;
* The active swoole mysql used for reads.
protected $readPdo;
public function __construct($pdo, $database = '', $tablePrefix = '', array $config = [])
$this->pdo = $pdo;
$this->database = $database;
$this->tablePrefix = $tablePrefix;
$this->config = $config;
$this->useDefaultQueryGrammar();
$this->useDefaultPostProcessor();
}
public function getDriverName()
return 'Swoole Coroutine MySQL';