feat(db2): enable data transfers and field lineage

This commit is contained in:
t8y2 committed 2026-09-30 16:06:59 +08:00
1 parent 18bd51bd74
commit eb76253d22
9 files changed
+436 -21

No files matched your search

@@ -11,6 +11,7 @@ import {
supportsDatabaseNameCompletion,
supportsDatabaseSchemaQualifier,
supportsDatabaseSearch,
supportsFieldLineage,
supportsObjectBrowser,
supportsObjectBrowserTreeNode,
supportsQueryExecution,
@@ -19,6 +20,7 @@ import {
supportsSqlInListPaste,
supportsTableImport,
supportsTableVacuum,
supportsTransfer,
supportsTransaction,
usesOracleStickyTransactionState,
usesProvenReadOnlyStickyTransactionState,
@@ -336,6 +338,20 @@ describe("supportsTableImport", () => {
});
});
describe("supportsFieldLineage", () => {
it("enables DB2 field lineage", () => {
expect(supportsFieldLineage("db2")).toBe(true);
});
});
describe("DB2 transfer and namespace capabilities", () => {
it("enables table transfers without enabling database lifecycle operations", () => {
expect(supportsTransfer("db2")).toBe(true);
expect(connectionNamespaceCreationTarget({ db_type: "db2" })).toBeNull();
expect(databaseNodeNamespaceCreationTarget({ db_type: "db2" }, { type: "database", database: "SAMPLE" })).toBe("schema");
});
});
describe("database property editing", () => {
it("allows MySQL-compatible charset and collation edits on database nodes", () => {
expect(editableDatabasePropertyGroups({ db_type: "mysql" }, { type: "database", database: "app" })).toEqual(["charsetCollation"]);