Driver
extends AbstractSQLServerDriver
in package
FinalYes
Abstract base implementation of the {@see Driver} interface for Microsoft SQL Server based drivers.
Table of Contents
Methods
- connect() : Connection
- {@inheritDoc}
- 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.
- constructDsn() : string
- Constructs the Sqlsrv PDO DSN.
- getConnectionOptionsDsn() : string
- Converts a connection options array to the DSN
Methods
connect()
{@inheritDoc}
public
connect(array<string|int, mixed> $params) : Connection
Parameters
- $params : array<string|int, mixed>
Return values
ConnectiongetDatabasePlatform()
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.
getExceptionConverter()
Gets the ExceptionConverter that can be used to convert driver-level exceptions into DBAL exceptions.
public
getExceptionConverter() : ExceptionConverter
Return values
ExceptionConvertergetSchemaManager()
Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.
public
getSchemaManager(Connection $conn, AbstractPlatform $platform) : AbstractSchemaManager
Parameters
- $conn : Connection
- $platform : AbstractPlatform
Tags
Return values
AbstractSchemaManagerconstructDsn()
Constructs the Sqlsrv PDO DSN.
private
constructDsn(array<string|int, mixed> $params, array<string|int, string> $connectionOptions) : string
Parameters
- $params : array<string|int, mixed>
- $connectionOptions : array<string|int, string>
Tags
Return values
stringgetConnectionOptionsDsn()
Converts a connection options array to the DSN
private
getConnectionOptionsDsn(array<string|int, string> $connectionOptions) : string
Parameters
- $connectionOptions : array<string|int, string>