Documentation

Driver

Driver interface.

Interface that all DBAL drivers must implement.

Tags
psalm-import-type

Params from DriverManager

Table of Contents

Methods

connect()  : Connection
Attempts to create a connection with the database.
getDatabasePlatform()  : AbstractPlatform
Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.
getExceptionConverter()  : ExceptionConverter
Gets the ExceptionConverter that can be used to convert driver-level exceptions into DBAL exceptions.
getSchemaManager()  : AbstractSchemaManager
Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.

Methods

connect()

Attempts to create a connection with the database.

public connect(array<string, mixed> $params) : Connection
Parameters
$params : array<string, mixed>

All connection parameters.

Tags
psalm-param

Params $params All connection parameters.

throws
Exception
Return values
Connection

The database connection.

getDatabasePlatform()

Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.

public getDatabasePlatform() : AbstractPlatform
Return values
AbstractPlatform

The database platform.


        
On this page

Search results