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

Class

TransactionManager
MySqli implementation of TransactionManagerInterface.

Namespace

Drupal\mysqli\Driver\Database\mysqli

Code

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

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