public function Connection::prepare

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::prepare()
  2. 8.x drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php \Drupal\Core\Database\Driver\sqlite\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.

Overrides Connection::prepare

File

drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 246
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($statement, array $driver_options = array()) {
  return new Statement($this->connection, $this, $statement, $driver_options);
}