function 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 938

Class

TruncateQuery
General class for an abstracted TRUNCATE operation.

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.