4 use Drupal\Core\Database\Database;
6 class Sql8 extends Sql7 {
7 public function get_db_spec() {
9 if (drush_bootstrap_max(DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION)) {
10 $database = drush_get_option('database', 'default');
11 $target = drush_get_option('target', 'default');
12 if ($info = Database::getConnectionInfo($database)) {
13 return $info[$target];
19 public function getAll() {
20 return Database::getAllConnectionInfo();