1.20.x 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

File

includes/database/database.inc, line 2834
Core systems for the database layer.

Code

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