You are here

public function Schema::__construct in Drupal driver for SQL Server and SQL Azure 3.0.x

Adding abilty to pass schema in configuration.

Overrides Schema::__construct

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php, line 766

Class

Schema

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function __construct($connection) {
  parent::__construct($connection);
  $options = $connection
    ->getConnectionOptions();
  if (isset($options['schema'])) {
    $this->defaultSchema = $options['schema'];
  }
  $this->cacheSchema = $options['cache_schema'] ?? FALSE;
}