Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PostgreSqlStore.php

function PostgreSqlStore::getConnection

1 call to PostgreSqlStore::getConnection()
PostgreSqlStore::getInternalStore in vendor/symfony/lock/Store/PostgreSqlStore.php

File

vendor/symfony/lock/Store/PostgreSqlStore.php, line 265

Class

PostgreSqlStore
PostgreSqlStore is a PersistingStoreInterface implementation using PostgreSql advisory locks.

Namespace

Symfony\Component\Lock\Store

Code

private function getConnection() : \PDO {
    if (!isset($this->conn)) {
        $this->conn = new \PDO($this->dsn, $this->username, $this->password, $this->connectionOptions);
        $this->conn
            ->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
        $this->checkDriver();
    }
    return $this->conn;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal