getDriverType static method
Implementation
static DatabaseDriverType getDriverType(String driver) {
return switch (driver) {
'sqlite' => DatabaseDriverType.sqlite,
'pgsql' => DatabaseDriverType.pgsql,
'mysql' => DatabaseDriverType.mysql,
'mariadb' => DatabaseDriverType.mariadb,
_ => throw ArgumentError.value(
driver, null, 'Invalid Database Driver provided in configuration')
};
}