db_driver

  1. drupal
    1. 7
Versions
7 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 drupal/modules/system/system.install
Remove custom datatype *_unsigned in PostgreSQL.
update_prepare_d7_bootstrap in drupal/includes/update.inc
Performs extra steps required to bootstrap when using a Drupal 6 database.

Code

drupal/includes/database/database.inc, line 2491

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