<?php namespace Doctrine\DBAL\Driver; use Doctrine\DBAL\ParameterType; /** * Connection interface. * Driver connections must implement this interface. * * @method resource|object getNativeConnection() */ interface Connection { /** * Prepares a statement for execution and returns a Statement object. * * @throws Exception */ public function prepare(string $sql): Statement; /** * Executes an SQL statement, returning a result set as a Statement object. * * @throws Exception */ public function query(string $sql): Result; /** * Quotes a string for use in a query. * * The usage of this method is discouraged. Use prepared statements * or {@see AbstractPlatform::quoteStringLiteral()} instead. * * @param mixed $value * @param int $type * * @return mixed */ public function quote($value, $type = ParameterType::STRING); /** * Executes an SQL statement and return the number of affected rows. * * @throws Exception */ public function exec(string $sql): int; /** * Returns the ID of the last inserted row or sequence value. * * @param string|null $name * * @return string|int|false * * @throws Exception */ public function lastInsertId($name = null); /** * Initiates a transaction. * * @return bool TRUE on success or FALSE on failure. * * @throws Exception */ public function beginTransaction(); /** * Commits a transaction. * * @return bool TRUE on success or FALSE on failure. * * @throws Exception */ public function commit(); /** * Rolls back the current transaction, as initiated by beginTransaction(). * * @return bool TRUE on success or FALSE on failure. * * @throws Exception */ public function rollBack(); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
API | Folder | 0755 |
|
|
AbstractOracleDriver | Folder | 0755 |
|
|
AbstractSQLServerDriver | Folder | 0755 |
|
|
AbstractSQLiteDriver | Folder | 0755 |
|
|
Exception | Folder | 0755 |
|
|
IBMDB2 | Folder | 0755 |
|
|
Middleware | Folder | 0755 |
|
|
Mysqli | Folder | 0755 |
|
|
OCI8 | Folder | 0755 |
|
|
PDO | Folder | 0755 |
|
|
PgSQL | Folder | 0755 |
|
|
SQLSrv | Folder | 0755 |
|
|
SQLite3 | Folder | 0755 |
|
|
AbstractDB2Driver.php | File | 1.4 KB | 0644 |
|
AbstractException.php | File | 1.05 KB | 0644 |
|
AbstractMySQLDriver.php | File | 6.11 KB | 0644 |
|
AbstractOracleDriver.php | File | 1.81 KB | 0644 |
|
AbstractPostgreSQLDriver.php | File | 2.7 KB | 0644 |
|
AbstractSQLServerDriver.php | File | 1.52 KB | 0644 |
|
AbstractSQLiteDriver.php | File | 1.39 KB | 0644 |
|
Connection.php | File | 1.89 KB | 0644 |
|
Exception.php | File | 404 B | 0644 |
|
FetchUtils.php | File | 1.27 KB | 0644 |
|
Middleware.php | File | 168 B | 0644 |
|
Result.php | File | 2.44 KB | 0644 |
|
ServerInfoAwareConnection.php | File | 543 B | 0644 |
|
Statement.php | File | 3.89 KB | 0644 |
|