fix(schema): list table sequences for kingbase and vastbase

This commit is contained in:
zipg authored and GitHub committed 2026-09-26 21:44:29 +08:00
1 parent 2b38509768
commit a8006a1fdd
4 files changed
+630 -14

No files matched your search

@@ -111,6 +111,13 @@ describe("databaseObjectCapabilities", () => {
expect(sidebarObjectKindsForDatabase("vastbase")).not.toContain("TRIGGER");
});
it("exposes sequences for Kingbase and Vastbase via the agent PostgreSQL catalogs", () => {
for (const dbType of ["kingbase", "vastbase"] as const) {
expect(sidebarObjectKindsForDatabase(dbType), dbType).toContain("SEQUENCE");
expect(databaseObjectCapabilities(dbType).sourceReadable, dbType).toContain("SEQUENCE");
}
});
it("only Xugu TYPE nodes can open object source", () => {
expect(supportsTypeObjectSource("xugu")).toBe(true);
for (const dbType of ["postgres", "opengauss", "gaussdb", "kingbase", "vastbase", undefined] as const) {