Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TransactionManagerBase.php

function TransactionManagerBase::releaseClientSavepoint

Releases a savepoint on the client transaction.

This is a generic implementation. Drivers should override this method to use a method specific for their client connection.

Parameters

string $name: The name of the savepoint.

Return value

bool Returns TRUE on success or FALSE on failure.

4 calls to TransactionManagerBase::releaseClientSavepoint()
TransactionManager::releaseClientSavepoint in core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php
Releases a savepoint on the client transaction.
TransactionManager::releaseClientSavepoint in core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php
Releases a savepoint on the client transaction.
TransactionManagerBase::rollback in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Rolls back a Drupal transaction.
TransactionManagerBase::unpile in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Removes a Drupal transaction from the stack.
1 method overrides TransactionManagerBase::releaseClientSavepoint()
TransactionManager::releaseClientSavepoint in core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php
Releases a savepoint on the client transaction.

File

core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php, line 532

Class

TransactionManagerBase
The database transaction manager base class.

Namespace

Drupal\Core\Database\Transaction

Code

protected function releaseClientSavepoint(string $name) : bool {
    $this->connection
        ->query('RELEASE SAVEPOINT ' . $name);
    return TRUE;
}
RSS feed
Powered by Drupal