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/mysql/src/Driver/Database/mysql/TransactionManager.php, line 23

Class

TransactionManager
MySql implementation of TransactionManagerInterface.

Namespace

Drupal\mysql\Driver\Database\mysql

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.