diff --git a/src/DatabaseDumpCommand.php b/src/DatabaseDumpCommand.php index c1b6d76..d3395ff 100644 --- a/src/DatabaseDumpCommand.php +++ b/src/DatabaseDumpCommand.php @@ -60,9 +60,6 @@ private function getDoctrineConnection(): DoctrineConnection $driver = match ($driverName = $connection->getDriverName()) { 'mysql', 'mariadb' => SupportedDriver::MySQL, - 'pgsql', 'postgres' => SupportedDriver::PostgreSQL, - 'sqlite' => SupportedDriver::SQLite, - 'sqlsrv' => SupportedDriver::SqlServer, default => throw new RuntimeException("Unsupported database driver provided ({$driverName})."), }; diff --git a/src/Enums/SupportedDriver.php b/src/Enums/SupportedDriver.php index bb63c54..e810c27 100644 --- a/src/Enums/SupportedDriver.php +++ b/src/Enums/SupportedDriver.php @@ -10,17 +10,11 @@ enum SupportedDriver { case MySQL; - case PostgreSQL; - case SQLite; - case SqlServer; public function driverName(): string { return match ($this) { self::MySQL => 'pdo_mysql', - self::PostgreSQL => 'pdo_pgsql', - self::SQLite => 'pdo_sqlite', - self::SqlServer => 'pdo_sqlsrv', }; } @@ -31,18 +25,6 @@ public function driver(): Driver { use ConnectsToDatabase; }, - self::PostgreSQL => new class extends Driver\AbstractPostgreSQLDriver - { - use ConnectsToDatabase; - }, - self::SQLite => new class extends Driver\AbstractSQLiteDriver - { - use ConnectsToDatabase; - }, - self::SqlServer => new class extends Driver\AbstractSQLServerDriver - { - use ConnectsToDatabase; - }, }; } }