function PDOConnection::beginTransaction

Same name in other branches
  1. 10 core/modules/sqlite/src/Driver/Database/sqlite/PDOConnection.php \Drupal\sqlite\Driver\Database\sqlite\PDOConnection::beginTransaction()
  2. 11.x core/modules/sqlite/src/Driver/Database/sqlite/PDOConnection.php \Drupal\sqlite\Driver\Database\sqlite\PDOConnection::beginTransaction()

File

core/modules/sqlite/src/Driver/Database/sqlite/PDOConnection.php, line 35

Class

PDOConnection
SQLite-specific implementation of a PDO connection.

Namespace

Drupal\sqlite\Driver\Database\sqlite

Code

public function beginTransaction() : bool {
    return $this->exec('BEGIN IMMEDIATE TRANSACTION') !== FALSE;
}

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