Driver
extends AbstractSQLServerDriver
in package
Abstract base implementation of the {@link Driver} interface for Microsoft SQL Server based drivers.
Table of Contents
- 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
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.
getExceptionConverter()
Gets the ExceptionConverter that can be used to convert driver-level exceptions into DBAL exceptions.
public
getExceptionConverter() : ExceptionConverter
Return values
ExceptionConverter —getSchemaManager()
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
Return values
AbstractSchemaManager —constructDsn()
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
string —getConnectionOptionsDsn()
Converts a connection options array to the DSN
private
getConnectionOptionsDsn(array<string|int, string> $connectionOptions) : string
Parameters
- $connectionOptions : array<string|int, string>