<?php namespace Doctrine\DBAL; use Doctrine\DBAL\Driver\API\ExceptionConverter; use Doctrine\DBAL\Driver\Connection as DriverConnection; use Doctrine\DBAL\Driver\Exception; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Schema\AbstractSchemaManager; use SensitiveParameter; /** * Driver interface. * Interface that all DBAL drivers must implement. * * @psalm-import-type Params from DriverManager */ interface Driver { /** * Attempts to create a connection with the database. * * @param array<string, mixed> $params All connection parameters. * @psalm-param Params $params All connection parameters. * * @return DriverConnection The database connection. * * @throws Exception */ public function connect( #[SensitiveParameter] array $params ); /** * Gets the DatabasePlatform instance that provides all the metadata about * the platform this driver connects to. * * @return AbstractPlatform The database platform. */ public function getDatabasePlatform(); /** * Gets the SchemaManager that can be used to inspect and change the underlying * database schema of the platform this driver connects to. * * @deprecated Use {@link AbstractPlatform::createSchemaManager()} instead. * * @return AbstractSchemaManager */ public function getSchemaManager(Connection $conn, AbstractPlatform $platform); /** * Gets the ExceptionConverter that can be used to convert driver-level exceptions into DBAL exceptions. */ public function getExceptionConverter(): ExceptionConverter; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ArrayParameters | Folder | 0755 |
|
|
Cache | Folder | 0755 |
|
|
Connections | Folder | 0755 |
|
|
Driver | Folder | 0755 |
|
|
Event | Folder | 0755 |
|
|
Exception | Folder | 0755 |
|
|
Id | Folder | 0755 |
|
|
Logging | Folder | 0755 |
|
|
Platforms | Folder | 0755 |
|
|
Portability | Folder | 0755 |
|
|
Query | Folder | 0755 |
|
|
SQL | Folder | 0755 |
|
|
Schema | Folder | 0755 |
|
|
Tools | Folder | 0755 |
|
|
Types | Folder | 0755 |
|
|
ArrayParameterType.php | File | 982 B | 0644 |
|
ColumnCase.php | File | 429 B | 0644 |
|
Configuration.php | File | 6.52 KB | 0644 |
|
Connection.php | File | 62.62 KB | 0644 |
|
ConnectionException.php | File | 917 B | 0644 |
|
Driver.php | File | 1.62 KB | 0644 |
|
DriverManager.php | File | 8.95 KB | 0644 |
|
Events.php | File | 1.58 KB | 0644 |
|
Exception.php | File | 4.95 KB | 0644 |
|
ExpandArrayParameters.php | File | 3.69 KB | 0644 |
|
FetchMode.php | File | 333 B | 0644 |
|
LockMode.php | File | 419 B | 0644 |
|
ParameterType.php | File | 982 B | 0644 |
|
Query.php | File | 1.16 KB | 0644 |
|
Result.php | File | 7.85 KB | 0644 |
|
Statement.php | File | 7.46 KB | 0644 |
|
TransactionIsolationLevel.php | File | 601 B | 0644 |
|
VersionAwarePlatformDriver.php | File | 1.02 KB | 0644 |
|