function db_installer_object

Same name in other branches
  1. 9 core/includes/install.inc \db_installer_object()
  2. 8.9.x core/includes/install.inc \db_installer_object()
  3. 10 core/includes/install.inc \db_installer_object()

Returns a database installer object.

Parameters

$driver: The name of the driver.

1 call to db_installer_object()
drupal_get_database_types in includes/install.inc
Returns all supported database installer objects that are compiled into PHP.

File

includes/install.inc, line 1342

Code

function db_installer_object($driver) {
    Database::loadDriverFile($driver, array(
        'install.inc',
    ));
    $task_class = 'DatabaseTasks_' . $driver;
    return new $task_class();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.