Delete.php in Drupal 9
Same filename in this branch
- 9 core/lib/Drupal/Core/Database/Query/Delete.php
- 9 core/lib/Drupal/Core/Database/Driver/pgsql/Delete.php
- 9 core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefakeWithAllCustomClasses/Delete.php
- 9 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Delete.php
Same filename and directory in other branches
Namespace
Drupal\Core\Database\Driver\pgsqlFile
core/lib/Drupal/Core/Database/Driver/pgsql/Delete.phpView source
<?php
namespace Drupal\Core\Database\Driver\pgsql;
use Drupal\Core\Database\Query\Delete as QueryDelete;
/**
* PostgreSQL implementation of \Drupal\Core\Database\Query\Delete.
*/
class Delete extends QueryDelete {
/**
* {@inheritdoc}
*/
public function execute() {
$this->connection
->addSavepoint();
try {
$result = parent::execute();
} catch (\Exception $e) {
$this->connection
->rollbackSavepoint();
throw $e;
}
$this->connection
->releaseSavepoint();
return $result;
}
}
Classes
Name | Description |
---|---|
Delete | PostgreSQL implementation of \Drupal\Core\Database\Query\Delete. |