PdoDsnResolver
final class PdoDsnResolver (View source)
Derives a PDO DSN from explicit configuration while preserving an explicitly supplied DSN.
Methods
resolve(DatabaseConfig $config)
Returns an explicit DSN or constructs the supported MySQL fallback from normalized connection settings.
string
isMysql(DatabaseConfig $config)
Indicates whether the resolved DSN selects the MySQL PDO driver.
bool
isSqlite(DatabaseConfig $config)
Indicates whether the resolved DSN selects the SQLite PDO driver.
bool
Details
resolve
static string
resolve(DatabaseConfig $config)
Returns an explicit DSN or constructs the supported MySQL fallback from normalized connection settings.
isMysql
static bool
isMysql(DatabaseConfig $config)
Indicates whether the resolved DSN selects the MySQL PDO driver.
isSqlite
static bool
isSqlite(DatabaseConfig $config)
Indicates whether the resolved DSN selects the SQLite PDO driver.