Update Core\DB

Track time for PDO::__construct().
This commit is contained in:
Visman 2021-12-10 20:49:01 +07:00
parent 4eb2854293
commit e435297865

View file

@ -74,8 +74,12 @@ class DB extends PDO
self::ATTR_STATEMENT_CLASS => [DBStatement::class, [$this]],
];
$start = \microtime(true);
parent::__construct($dsn, $username, $password, $options);
$this->saveQuery('PDO::__construct()', \microtime(true) - $start, false);
$this->beginTransaction();
}