/home/techb158/immovalet.com/vendor/doctrine/dbal/src/Driver/PDO
NameSizeModeActions
MySQL/-0755rm
OCI/-0755rm
PgSQL/-0755rm
SQLite/-0755rm
SQLSrv/-0755rm
Connection.php35580644editdlrm
Exception.php5910644editdlrm
Result.php25370644editdlrm
Statement.php31850644editdlrm
Edit: /home/techb158/immovalet.com/vendor/doctrine/dbal/src/Driver/PDO/Connection.php (3558B)
connection = new PDO($dsn, (string) $user, (string) $password, (array) $options); $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $exception) { throw Exception::new($exception); } } public function exec(string $sql): int { try { $result = $this->connection->exec($sql); assert($result !== false); return $result; } catch (PDOException $exception) { throw Exception::new($exception); } } /** * {@inheritdoc} */ public function getServerVersion() { return $this->connection->getAttribute(PDO::ATTR_SERVER_VERSION); } /** * {@inheritDoc} * * @return Statement */ public function prepare(string $sql): StatementInterface { try { $stmt = $this->connection->prepare($sql); assert($stmt instanceof PDOStatement); return $this->createStatement($stmt); } catch (PDOException $exception) { throw Exception::new($exception); } } public function query(string $sql): ResultInterface { try { $stmt = $this->connection->query($sql); assert($stmt instanceof PDOStatement); return new Result($stmt); } catch (PDOException $exception) { throw Exception::new($exception); } } /** * {@inheritdoc} */ public function quote($value, $type = ParameterType::STRING) { return $this->connection->quote($value, $type); } /** * {@inheritdoc} */ public function lastInsertId($name = null) { try { if ($name === null) { return $this->connection->lastInsertId(); } return $this->connection->lastInsertId($name); } catch (PDOException $exception) { throw Exception::new($exception); } } /** * Creates a wrapped statement */ protected function createStatement(PDOStatement $stmt): Statement { return new Statement($stmt); } /** * {@inheritDoc} */ public function beginTransaction() { return $this->connection->beginTransaction(); } /** * {@inheritDoc} */ public function commit() { return $this->connection->commit(); } /** * {@inheritDoc} */ public function rollBack() { return $this->connection->rollBack(); } public function getWrappedConnection(): PDO { return $this->connection; } }