db_driver

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 db_driver()

Retrieves the name of the currently active database driver.

Return value

The name of the currently active database driver.

Related topics

▾ 2 functions call 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.

Code

includes/database/database.inc, line 2589

<?php
function db_driver() {
  return Database::getConnection()->driver();
}
?>