New function to fetch the database driver

This commit is contained in:
Michael 2020-11-07 09:02:02 +00:00
parent 43749c3069
commit 3a5cdecb62
2 changed files with 56 additions and 33 deletions

View file

@ -72,6 +72,16 @@ class DBA
return DI::dba()->getConnection();
}
/**
* Return the database driver string
*
* @return string with either "pdo" or "mysqli"
*/
public static function getDriver()
{
return DI::dba()->getDriver();
}
/**
* Returns the MySQL server version string
*