function drush_sql_bootstrap_database_configuration

8.0.x drush_sql_bootstrap_database_configuration()
7.x drush_sql_bootstrap_database_configuration()
master drush_sql_bootstrap_database_configuration()

Safely bootstrap Drupal to the point where we can access the database configuration.

3 calls to drush_sql_bootstrap_database_configuration()
drush_sql_bootstrap_further in commands/sql/
Check whether further bootstrap is needed. If so, do it.
drush_sql_conf in commands/sql/
Command callback. Displays the Drupal site's database connection string.
Sql7::get_db_spec in lib/Drush/Sql/Sql7.php


commands/sql/, line 193
Drush sql commands


function drush_sql_bootstrap_database_configuration() {
  // Under Drupal 7, if the database is configured but empty, then
  // DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION will throw an exception.
  // If this happens, we'll just catch it and continue.
  // TODO:  Fix this in the bootstrap, per
  try {
  catch (Exception $e) {