function TruncateQuery_sqlite::__toString

Overrides TruncateQuery::__toString

File

includes/database/sqlite/query.inc, line 132

Class

TruncateQuery_sqlite
SQLite specific implementation of TruncateQuery.

Code

public function __toString() {
    // Create a sanitized comment string to prepend to the query.
    $comments = $this->connection
        ->makeComment($this->comments);
    return $comments . 'DELETE FROM {' . $this->connection
        ->escapeTable($this->table) . '} ';
}

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