public function TruncateQuery::execute

public TruncateQuery::execute()

Executes the TRUNCATE query.

Return value

Return value is dependent on the database type.

Overrides Query::execute

File

includes/database/query.inc, line 932
Non-specific Database query code. Used by all engines.

Class

TruncateQuery
General class for an abstracted TRUNCATE operation.

Code

public function execute() {
  return $this->connection->query((string) $this, array(), $this->queryOptions);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!query.inc/function/TruncateQuery::execute/7.x