function Connection::prepare

Same name in this branch
  1. 8.9.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::prepare()
Same name in other branches
  1. 9 core/modules/sqlite/src/Driver/Database/sqlite/Connection.php \Drupal\sqlite\Driver\Database\sqlite\Connection::prepare()
  2. 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::prepare()

Overrides Connection::prepare

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

File

core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 333

Class

Connection
SQLite implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\Core\Database\Driver\sqlite

Code

public function prepare($statement, array $driver_options = []) {
    return new Statement($this->connection, $this, $statement, $driver_options);
}

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