trait ParsesSqlServerConfigurationUrls (View source)

Properties

static protected array<string, string> $sqlServerDsnOptionAliases

The SQL Server DSN option aliases.

Methods

bool
isSqlServerDsn(string $url)

Determine if the given value is a SQL Server DSN.

array<string, mixed>
parseSqlServerDsnConfiguration(array<string, mixed> $config, string $dsn)

Parse a SQL Server DSN into a database configuration.

array<string, mixed>
getSqlServerDsnConfigurationOptions(array<string, string> $options)

Get the database configuration options from a SQL Server DSN.

array<string, string>
parseSqlServerDsnOptions(string $dsn)

Parse the options from a SQL Server DSN.

array{0: string|null, 1: int|null}
parseSqlServerDsnServer(string|null $server)

Parse the host and port from a SQL Server DSN Server option.

Details

protected bool isSqlServerDsn(string $url)

Determine if the given value is a SQL Server DSN.

Parameters

string $url

Return Value

bool

protected array<string, mixed> parseSqlServerDsnConfiguration(array<string, mixed> $config, string $dsn)

Parse a SQL Server DSN into a database configuration.

Parameters

array<string, mixed> $config
string $dsn

Return Value

array<string, mixed>

protected array<string, mixed> getSqlServerDsnConfigurationOptions(array<string, string> $options)

Get the database configuration options from a SQL Server DSN.

Parameters

array<string, string> $options

Return Value

array<string, mixed>

protected array<string, string> parseSqlServerDsnOptions(string $dsn)

Parse the options from a SQL Server DSN.

Parameters

string $dsn

Return Value

array<string, string>

protected array{0: string|null, 1: int|null} parseSqlServerDsnServer(string|null $server)

Parse the host and port from a SQL Server DSN Server option.

Parameters

string|null $server

Return Value

array{0: string|null, 1: int|null}