You are here

abstract public function Query::__toString in Drupal 7

Implements PHP magic __toString method to convert the query to a string.

The toString operation is how we compile a query object to a prepared statement.

Return value

A prepared statement query string for this object.

6 methods override Query::__toString()
DeleteQuery::__toString in includes/database/query.inc
Implements PHP magic __toString method to convert the query to a string.
InsertQuery::__toString in includes/database/query.inc
Implements PHP magic __toString method to convert the query to a string.
MergeQuery::__toString in includes/database/query.inc
Implements PHP magic __toString method to convert the query to a string.
SelectQuery::__toString in includes/database/select.inc
Implements PHP magic __toString method to convert the query to a string.
TruncateQuery::__toString in includes/database/query.inc
Implements PHP magic __toString method to convert the query to a string.

... See full list

File

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

Class

Query
Base class for query builders.

Code

public abstract function __toString();