Add getType() method
This commit is contained in:
parent
295c426df0
commit
59dfe8004c
1 changed files with 8 additions and 0 deletions
|
@ -222,6 +222,14 @@ class DB extends PDO
|
|||
return $this->queries;
|
||||
}
|
||||
|
||||
/**
|
||||
* Возвращает тип базы данных указанный в DSN
|
||||
*/
|
||||
public function getType(): string
|
||||
{
|
||||
return $this->dbType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Метод для сохранения статистики по выполненному запросу
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue