public function Connection::prepare

SQLite-specific implementation of DatabaseConnection::prepare().

We don't use prepared statements at all at this stage. We just create a Statement object, that will create a PDOStatement using the semi-private PDOPrepare() method below.

1 call to Connection::prepare()
Connection::prepareQuery in drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
Prepares a query string and returns the prepared statement.

File

drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 233
Definition of Drupal\Core\Database\Driver\sqlite\Connection

Class

Connection
Specific SQLite implementation of DatabaseConnection.

Namespace

Drupal\Core\Database\Driver\sqlite

Code

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