This commit is contained in:
as2252258@163.com
2021-08-28 03:06:34 +08:00
parent d5193add08
commit de45170f2c
+1
View File
@@ -112,6 +112,7 @@ class Connection extends Component
public function create($coroutineName, $config): Closure
{
return static function () use ($coroutineName, $config) {
debug('create db.');
return Kiri::getDi()->newObject(PDO::class, [
$config['database'], $config['cds'], $config['username'], $config['password'], $config['charset'] ?? 'utf8mb4'
]);