You are here

public function Connection::getDatabaseName in Drupal driver for SQL Server and SQL Azure 8.2

Return the name of the database in use, not prefixed!

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php, line 1081
Definition of Drupal\Driver\Database\sqlsrv\Connection

Class

Connection
Temporary tables: temporary table support is done by means of global temporary tables (#) to avoid the use of DIRECT QUERIES. You can enable and disable the use of direct queries with $this->driver_settings->defaultDirectQuery =…

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function getDatabaseName() {

  // Database is defaulted from active connection.
  $options = $this
    ->getConnectionOptions();
  return $options['database'];
}