You are here

class Delete in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Database/Query/Delete.php \Drupal\Core\Database\Query\Delete
  2. 8 core/lib/Drupal/Core/Database/Driver/sqlite/Delete.php \Drupal\Core\Database\Driver\sqlite\Delete
  3. 8 core/lib/Drupal/Core/Database/Driver/pgsql/Delete.php \Drupal\Core\Database\Driver\pgsql\Delete
  4. 8 core/lib/Drupal/Core/Database/Driver/mysql/Delete.php \Drupal\Core\Database\Driver\mysql\Delete
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Driver/pgsql/Delete.php \Drupal\Core\Database\Driver\pgsql\Delete

PostgreSQL implementation of \Drupal\Core\Database\Query\Delete.

Hierarchy

Expanded class hierarchy of Delete

123 string references to 'Delete'
action.routing.yml in core/modules/action/action.routing.yml
core/modules/action/action.routing.yml
admin_toolbar_tools_menu_links_discovered_alter in modules/admin_toolbar/admin_toolbar_tools/admin_toolbar_tools.module
Implements hook_menu_links_discovered_alter().
aggregator.links.task.yml in core/modules/aggregator/aggregator.links.task.yml
core/modules/aggregator/aggregator.links.task.yml
AggregatorController::adminOverview in core/modules/aggregator/src/Controller/AggregatorController.php
Displays the aggregator administration page.
AggregatorTestBase::deleteFeed in core/modules/aggregator/src/Tests/AggregatorTestBase.php
Deletes an aggregator feed.

... See full list

File

core/lib/Drupal/Core/Database/Driver/pgsql/Delete.php, line 15
Contains \Drupal\Core\Database\Driver\pgsql\Delete.

Namespace

Drupal\Core\Database\Driver\pgsql
View source
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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Delete::$table protected property The table from which to delete.
Delete::execute public function Executes the DELETE query. Overrides Delete::execute
Delete::__construct public function Constructs a Delete object. Overrides Query::__construct
Delete::__toString public function Implements PHP magic __toString method to convert the query to a string. Overrides Query::__toString
Query::$comments protected property An array of comments that can be prepended to a query.
Query::$connection protected property The connection object on which to run this query.
Query::$connectionKey protected property The key of the connection object.
Query::$connectionTarget protected property The target of the connection object.
Query::$nextPlaceholder protected property The placeholder counter.
Query::$queryOptions protected property The query options to pass on to the connection object.
Query::$uniqueIdentifier protected property A unique identifier for this query object.
Query::comment public function Adds a comment to the query.
Query::getComments public function Returns a reference to the comments array for the query.
Query::nextPlaceholder public function Gets the next placeholder value for this query object. Overrides PlaceholderInterface::nextPlaceholder
Query::uniqueIdentifier public function Returns a unique identifier for this object. Overrides PlaceholderInterface::uniqueIdentifier
Query::__clone public function Implements the magic __clone function. 1
Query::__sleep public function Implements the magic __sleep function to disconnect from the database.
Query::__wakeup public function Implements the magic __wakeup function to reconnect to the database.
QueryConditionTrait::$condition protected property The condition object for this query.
QueryConditionTrait::andConditionGroup public function
QueryConditionTrait::arguments public function 1
QueryConditionTrait::compile public function 1
QueryConditionTrait::compiled public function 1
QueryConditionTrait::condition public function
QueryConditionTrait::conditionGroupFactory public function
QueryConditionTrait::conditions public function
QueryConditionTrait::exists public function
QueryConditionTrait::isNotNull public function
QueryConditionTrait::isNull public function
QueryConditionTrait::notExists public function
QueryConditionTrait::orConditionGroup public function
QueryConditionTrait::where public function