public function DatabaseConnection_sqlite::prepare
public DatabaseConnection_sqlite::prepare($query, $options = array())
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.
File
- includes/database/sqlite/database.inc, line 221
- 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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!sqlite!database.inc/function/DatabaseConnection_sqlite::prepare/7.x