feat(cloudberry): add database support

This commit is contained in:
t8y2 committed 2026-07-24 16:55:50 +08:00
1 parent 0362fef273
commit 0449d7487a
13 files changed
+573 -1

No files matched your search

@@ -31,6 +31,7 @@ const SCHEME_PROFILES: Record<string, ConnectionProfile> = {
mariadb: { type: "mysql", profile: "mariadb", label: "MariaDB", defaultPort: 3306 },
postgres: { type: "postgres", profile: "postgres", label: "PostgreSQL", defaultPort: 5432 },
postgresql: { type: "postgres", profile: "postgres", label: "PostgreSQL", defaultPort: 5432 },
cloudberry: { type: "postgres", profile: "cloudberry", label: "Apache Cloudberry", defaultPort: 5432 },
redshift: { type: "redshift", profile: "redshift", label: "Redshift", defaultPort: 5439 },
redis: { type: "redis", profile: "redis", label: "Redis", defaultPort: 6379 },
rediss: { type: "redis", profile: "redis", label: "Redis", defaultPort: 6379 },
@@ -248,6 +249,10 @@ export function connectionProfileForScheme(scheme: string, preferredProfile?: st
if ((scheme === "http" || scheme === "https") && preferredProfile) {
return HTTP_SELECTED_PROFILES[preferredProfile];
}
// Cloudberry uses PostgreSQL URLs, so keep the selected product profile when parsing a pasted URL.
if ((scheme === "postgres" || scheme === "postgresql") && preferredProfile === "cloudberry") {
return SCHEME_PROFILES.cloudberry;
}
return SCHEME_PROFILES[scheme];
}