Connection::commit

public Connection::commit() Throws an exception to deny direct access to transaction commits. We do not want to allow users to commit transactions at any time, only by destroying the transaction object or allowing it to go out of scope. A direct commit bypasses all of the safety checks we've built on top of PDO's transaction routines. Throws \Drupal\Core\Database\TransactionExplicitCommitNotAllowedException See also \Drupal\Core\Database\Transaction File core/lib/Drupal/Core/Database/Connecti

Connection::clientVersion

public Connection::clientVersion() Returns the version of the database client. File core/lib/Drupal/Core/Database/Connection.php, line 1276 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function clientVersion() { return $this->connection->getAttribute(\PDO::ATTR_CLIENT_VERSION); }

Connection::addSavepoint

public Connection::addSavepoint($savepoint_name = 'mimic_implicit_commit') Add a new savepoint with an unique name. The main use for this method is to mimic InnoDB functionality, which provides an inherent savepoint before any query in a transaction. Parameters $savepoint_name: A string representing the savepoint name. By default, "mimic_implicit_commit" is used. See also Drupal\Core\Database\Connection::pushTransaction() File core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php, line 38

Connection::$willRollback

Whether or not the active transaction (if any) will be rolled back. Type: bool File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 24 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code protected $willRollback;

Connection::$unprefixedTablesMap

List of un-prefixed table names, keyed by prefixed table names. Type: array File core/lib/Drupal/Core/Database/Connection.php, line 141 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $unprefixedTablesMap = [];

Connection::$transactionSupport

Whether this database connection supports transactions. Type: bool File core/lib/Drupal/Core/Database/Connection.php, line 74 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $transactionSupport = TRUE;

Connection::$transactionLayers

Tracks the number of "layers" of transactions currently active. On many databases transactions cannot nest. Instead, we track nested calls to transactions and collapse them into a single transaction. Type: array File core/lib/Drupal/Core/Database/Connection.php, line 53 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $transactionLayers = array();

Connection::$transactionalDDLSupport

Whether this database connection supports transactional DDL. Set to FALSE by default because few databases support this feature. Type: bool File core/lib/Drupal/Core/Database/Connection.php, line 83 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $transactionalDDLSupport = FALSE;

Connection::$temporaryNameIndex

An index used to generate unique temporary table names. Type: int File core/lib/Drupal/Core/Database/Connection.php, line 90 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $temporaryNameIndex = 0;

Connection::$target

The database target this connection is for. We need this information for later auditing and logging. Type: string|null File core/lib/Drupal/Core/Database/Connection.php, line 24 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $target = NULL;