function db_installer_object

7.x install.inc db_installer_object($driver)

Returns a database installer object.

Parameters

$driver: The name of the driver.

2 calls to db_installer_object()
db_run_tasks in drupal-7.x/includes/install.inc
Ensures the environment for a Drupal database on a predefined connection.
drupal_get_database_types in drupal-7.x/includes/install.inc
Returns all supported database installer objects that are compiled into PHP.

File

drupal-7.x/includes/install.inc, line 1328
API functions for installing modules and themes.

Code

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