You are here

public function Scheme::UserOptions in Drupal driver for SQL Server and SQL Azure 8.2

Current configuration for the connection.

Return value

Scheme\UserOptions

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Scheme.php, line 372

Class

Scheme

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function UserOptions() {
  if ($cache = $this->cnn
    ->Cache('sqlsrv-engine')
    ->Get('UserOptions')) {
    return $cache->data;
  }
  $data = Scheme\UserOptions::Get($this->cnn);
  $this->cnn
    ->Cache('sqlsrv-engine')
    ->Set('UserOptions', $data);
  return $data;
}