fix(packages): route gaussdb and opengauss through direct query (#547)

This commit is contained in:
Guoyu Su authored and GitHub committed 2026-05-30 19:04:40 +08:00
1 parent 0eacda465e
commit bc79fa4683
3 files changed
+23 -18

No files matched your search

+8
View File
@@ -4,6 +4,14 @@ import { inspectConnectionStore } from "./connections.js";
export const DIRECT_QUERY_TYPES = ["postgres", "redshift", "mysql", "doris", "starrocks", "sqlite", "gaussdb", "opengauss"] as const;
export type DirectQueryType = (typeof DIRECT_QUERY_TYPES)[number];
const DIRECT_QUERY_TYPE_SET = new Set<string>(DIRECT_QUERY_TYPES);
export function isDirectQueryType(dbType: string): dbType is DirectQueryType {
return DIRECT_QUERY_TYPE_SET.has(dbType);
}
export const BRIDGE_REQUIRED_TYPES = [
"redis",
"mongodb",