New function to fetch the database driver
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user