src/DatabaseConnection.php
public function prepare($statement, $driverOpts = null) {
		if ($driverOpts === null) {
			$driverOpts = [];
		}

		try {
			$stmt = $this->pdo->prepare($statement, $driverOpts);
			return new PreparedStatement($stmt, $this->pdo, $this->exceptionAdapter);
		} catch (PDOException $e) {
			throw $this->exceptionAdapter->adapt($e, $statement);
		}
	}
public function prepare($statement, $driverOpts = null) {
		if ($driverOpts === null) {
			$driverOpts = [];
		}

		try {
			$stmt = $this->pdo->prepare($statement, $driverOpts);
			return new PreparedStatement($stmt, $this->pdo, $this->exceptionAdapter);
		} catch (PDOException $e) {
			throw $this->exceptionAdapter->adapt($e, $statement);
		}
	}
public function prepare ( $ statement , $ driverOpts = null ) { if ( $ driverOpts === null ) { $ driverOpts = [ ] ; } try { $ stmt = $ this -> pdo -> prepare ( $ statement , $ driverOpts ) ; return new PreparedStatement ( $ stmt , $ this -> pdo , $ this -> exceptionAdapter ) ; } catch ( PDOException $ e ) { throw $ this -> exceptionAdapter -> adapt ( $ e , $ statement ) ; } }
Create a prepared statement for the given query.

@params string $statement
The SQL query to prepare.
@params array $driverOpts
Options for the prepare statement.
Create a prepared statement for the given query .