class Sql8

  1. 8.0.x lib/Drush/Sql/Sql8.php Sql8
  2. 7.x lib/Drush/Sql/Sql8.php Sql8
  3. master lib/Drush/Sql/Sql8.php Sql8

Namespace

Drush\Sql

Hierarchy

Expanded class hierarchy of Sql8

Members

Contains filters are case sensitive
Name Modifierssort descending Type Description
Sql8::get_db_spec public function Overrides Sql7::get_db_spec
Sql8::getAll public function Overrides Sql7::getAll
SqlVersion::valid_credentials public function

File

lib/Drush/Sql/Sql8.php, line 6

View source
class Sql8 extends Sql7 {
  public function get_db_spec() {
    $db_spec = NULL;
    if (drush_bootstrap_max(DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION)) {
      $database = drush_get_option('database', 'default');
      $target = drush_get_option('target', 'default');
      if ($info = Database::getConnectionInfo($database)) {
        return $info[$target];
      }
    }
    return $db_spec;
  }

  public function getAll() {
    return Database::getAllConnectionInfo();
  }
}