ParsesSqlServerConfigurationUrls
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.
protected array<string, mixed>
parseSqlServerDsnConfiguration(array<string, mixed> $config, string $dsn)
Parse a SQL Server DSN into a database configuration.
protected array<string, mixed>
getSqlServerDsnConfigurationOptions(array<string, string> $options)
Get the database configuration options from a SQL Server DSN.
protected array<string, string>
parseSqlServerDsnOptions(string $dsn)
Parse the options from a SQL Server DSN.
protected array{0: string|null, 1: int|null}
parseSqlServerDsnServer(string|null $server)
Parse the host and port from a SQL Server DSN Server option.