constant DRUSH_BOOTSTRAP_DRUPAL_DATABASE

  1. 8.0.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
  2. 6.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
  3. 7.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
  4. 3.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
  5. 4.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
  6. 5.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
  7. master includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE

Connect to the Drupal database using the database credentials loaded during the previous bootstrap phase.

This phase is analogous to the DRUPAL_BOOTSTRAP_DATABASE bootstrap phase in Drupal.

Any code that needs to interact with the Drupal database API needs to be bootstrapped to at least this phase.

File

includes/bootstrap.inc, line 81

Code

define('DRUSH_BOOTSTRAP_DRUPAL_DATABASE', 4)