function TransactionManager::beginClientTransaction

Begins a transaction on the client connection.

Return value

bool Returns TRUE on success or FALSE on failure.

Overrides TransactionManagerBase::beginClientTransaction

File

core/modules/pgsql/src/Driver/Database/pgsql/TransactionManager.php, line 18

Class

TransactionManager
PostgreSql implementation of TransactionManagerInterface.

Namespace

Drupal\pgsql\Driver\Database\pgsql

Code

protected function beginClientTransaction() : bool {
  return $this->connection
    ->getClientConnection()
    ->beginTransaction();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.