public function DatabaseConnection_sqlite::prepare in Drupal 7
SQLite-specific implementation of DatabaseConnection::prepare().
We don't use prepared statements at all at this stage. We just create a DatabaseStatement_sqlite object, that will create a PDOStatement using the semi-private PDOPrepare() method below.
1 call to DatabaseConnection_sqlite::prepare()
- DatabaseConnection_sqlite::prepareQuery in includes/
database/ sqlite/ database.inc - Prepares a query string and returns the prepared statement.
File
- includes/
database/ sqlite/ database.inc, line 245 - Database interface code for SQLite embedded database engine.
Class
- DatabaseConnection_sqlite
- Specific SQLite implementation of DatabaseConnection.
Code
public function prepare($query, $options = array()) {
return new DatabaseStatement_sqlite($this, $query, $options);
}