function DatabaseConnection_sqlite::prepare

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

Class

DatabaseConnection_sqlite
Specific SQLite implementation of DatabaseConnection.

Code

public function prepare($query, $options = array()) {
    return new DatabaseStatement_sqlite($this, $query, $options);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.