mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
New function to fetch the database driver
This commit is contained in:
parent
43749c3069
commit
3a5cdecb62
2 changed files with 56 additions and 33 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue