public function DatabaseConnection_sqlite::prepareQuery
7.x database.inc | public DatabaseConnection_sqlite::prepareQuery($query) |
Prepares a query string and returns the prepared statement.
This method caches prepared statements, reusing them when possible. It also prefixes tables names enclosed in curly-braces.
Parameters
$query: The query string as SQL, with curly-braces surrounding the table names.
Return value
DatabaseStatementInterface A PDO prepared statement ready for its execute() method.
Overrides DatabaseConnection::prepareQuery
File
- drupal-7.x/
includes/ database/ sqlite/ database.inc, line 274 - Database interface code for SQLite embedded database engine.
Class
- DatabaseConnection_sqlite
- Specific SQLite implementation of DatabaseConnection.
Code
public function prepareQuery($query) {
return $this->prepare($this->prefixTables($query));
}