function Connection::open
Opens a PDO connection.
Parameters
array $connection_options: The database connection settings array.
Return value
\PDO A \PDO object.
3 methods override Connection::open()
- Connection::open in core/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Connection.php - Opens a PDO connection.
- Connection::open in core/
lib/ Drupal/ Core/ Database/ Driver/ mysql/ Connection.php - Opens a PDO connection.
- Connection::open in core/
lib/ Drupal/ Core/ Database/ Driver/ pgsql/ Connection.php - Opens a PDO connection.
File
-
core/
lib/ Drupal/ Core/ Database/ Connection.php, line 199
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public static function open(array &$connection_options = []) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.