1 query.inc public TruncateQuery::execute()

Executes the TRUNCATE query.

Return value

DatabaseStatementInterface|false|int|PDOStatement|string|null: Return value is dependent on the database type.

Overrides Query::execute

File

core/includes/database/query.inc, line 945
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);
}