3 namespace Drupal\Core\Database\Driver\pgsql;
5 use Drupal\Core\Database\Query\Truncate as QueryTruncate;
8 * PostgreSQL implementation of \Drupal\Core\Database\Query\Truncate.
10 class Truncate extends QueryTruncate {
15 public function execute() {
16 $this->connection->addSavepoint();
18 $result = parent::execute();
20 catch (\Exception $e) {
21 $this->connection->rollbackSavepoint();
24 $this->connection->releaseSavepoint();