fix(database): handle unsupported database types in StartDatabaseProxy

Added a default case to the switch statement in StartDatabaseProxy to throw an exception for unsupported database types. This change improves error handling and ensures that only valid database types are processed, enhancing the robustness of the database proxy functionality.
This commit is contained in:
Andras Bacsai
2025-03-12 16:35:47 +01:00
parent 18fe524cdb
commit 078ef62eb8

View File

@@ -40,6 +40,7 @@ class StartDatabaseProxy
'standalone-redis', 'standalone-keydb', 'standalone-dragonfly' => 6379,
'standalone-clickhouse' => 9000,
'standalone-mongodb' => 27017,
default => throw new \Exception("Unsupported database type: $databaseType"),
};
$configuration_dir = database_proxy_dir($database->uuid);