TruncateQuery_sqlite::__toString
public function TruncateQuery_sqlite::__toString
public TruncateQuery_sqlite::__toString()
Implements PHP magic __toString method to convert the query to a string.
Return value
string The prepared statement.
Overrides TruncateQuery::__toString
File
- includes/database/sqlite/query.inc, line 130
- Query code for SQLite embedded database engine.
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) . '} '; }
© 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!sqlite!query.inc/function/TruncateQuery_sqlite::__toString/7.x