constant DRUSH_BOOTSTRAP_DRUPAL_DATABASE
- 8.0.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
- 6.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
- 7.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
- 3.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
- 4.x includes/environment.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
- 5.x includes/bootstrap.inc DRUSH_BOOTSTRAP_DRUPAL_DATABASE
- 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 90 - Drush bootstrapping code.
Code
define('DRUSH_BOOTSTRAP_DRUPAL_DATABASE', 4)