function db_driver in Drupal 7
Same name and namespace in other branches
- 8 core/includes/database.inc \db_driver()
Retrieves the name of the currently active database driver.
Return value
The name of the currently active database driver.
Related topics
2 calls to db_driver()
- system_update_7016 in modules/
system/ system.install - Remove custom datatype *_unsigned in PostgreSQL.
- update_prepare_d7_bootstrap in includes/
update.inc - Performs extra steps required to bootstrap when using a Drupal 6 database.
File
- includes/
database/ database.inc, line 2730 - Core systems for the database layer.
Code
function db_driver() {
return Database::getConnection()
->driver();
}