Returns the version of the database server.
File
- drupal/core/lib/Drupal/Core/Database/Connection.php, line 1080
- Definition of Drupal\Core\Database\Connection
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\Database
Code
public function version() {
return $this
->getAttribute(PDO::ATTR_SERVER_VERSION);
}