You are here

public function Connection::version in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::version()

Returns the version of the database server.

1 call to Connection::version()
Connection::upsert in core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
Prepares and returns an UPSERT query object.

File

core/lib/Drupal/Core/Database/Connection.php, line 1277
Contains \Drupal\Core\Database\Connection.

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function version() {
  return $this->connection
    ->getAttribute(\PDO::ATTR_SERVER_VERSION);
}