You are here

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

Summary of EngineVersion

Return value

Scheme\EngineVersion

File

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

Class

Scheme

Namespace

Drupal\Driver\Database\sqlsrv

Code

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