abstract public function Query::__toString in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::__toString()
 - 10 core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::__toString()
 
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::__toString()
 - 9 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::__toString()
 
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
string A prepared statement query string for this object.
9 methods override Query::__toString()
- Delete::__toString in core/
lib/ Drupal/ Core/ Database/ Query/ Delete.php  - Implements PHP magic __toString method to convert the query to a string.
 - Insert::__toString in core/
lib/ Drupal/ Core/ Database/ Query/ Insert.php  - Implements PHP magic __toString method to convert the query to a string.
 - Merge::__toString in core/
lib/ Drupal/ Core/ Database/ Query/ Merge.php  - Implements PHP magic __toString method to convert the query to a string.
 - Truncate::__toString in core/
lib/ Drupal/ Core/ Database/ Query/ Truncate.php  - Implements PHP magic __toString method to convert the query to a string.
 - Update::__toString in core/
lib/ Drupal/ Core/ Database/ Query/ Update.php  - Implements PHP magic __toString method to convert the query to a string.
 
File
- core/
lib/ Drupal/ Core/ Database/ Query/ Query.php, line 123  
Class
- Query
 - Base class for query builders.
 
Namespace
Drupal\Core\Database\QueryCode
public abstract function __toString();