mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 05:52:48 +08:00
改进Query类的driver属性设置 删除Connection类的getDriverName方法 改进connect方法
This commit is contained in:
@@ -59,7 +59,7 @@ class Query
|
||||
public function __construct(Connection $connection = null, $model = '')
|
||||
{
|
||||
$this->connection = $connection ?: Db::connect([], true);
|
||||
$this->driver = $this->connection->getDriverName();
|
||||
$this->driver = $this->connection->getConfig('type');
|
||||
$this->prefix = $this->connection->getConfig('prefix');
|
||||
$this->model = $model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user