fix(transfer): support HighGo data transfer

This commit is contained in:
jearhe
2026-09-13 01:41:01 +08:00
committed by GitHub
parent 4fe04c8bb9
commit 859a004136
4 changed files with 13 additions and 3 deletions
@@ -4,7 +4,7 @@ import { manifestDatabaseTypes } from "@/lib/database/databaseDriverManifest";
import { supportsTransfer } from "@/lib/database/databaseFeatureSupport";
import type { DatabaseType } from "@/types/database";
const TABLE_ONLY_TRANSFER_DATABASES: DatabaseType[] = ["sqlite", "rqlite", "turso", "cloudflare-d1", "duckdb", "clickhouse", "mongodb", "goldendb", "questdb", "hive", "argo", "kyuubi", "impala", "spark"];
const TABLE_ONLY_TRANSFER_DATABASES: DatabaseType[] = ["sqlite", "rqlite", "turso", "cloudflare-d1", "duckdb", "clickhouse", "mongodb", "highgo", "goldendb", "questdb", "hive", "argo", "kyuubi", "impala", "spark"];
describe("transferObjectKinds", () => {
it("groups databases into transfer families", () => {
@@ -945,7 +945,7 @@
"tableDataEdit": true,
"tableStructureEdit": true,
"tableImport": true,
"dataTransfer": false,
"dataTransfer": true,
"sqlFileExecution": true,
"databaseCreate": true,
"fieldLineage": false,
@@ -455,3 +455,13 @@ fn goldendb_declares_data_transfer_support() {
assert!(goldendb.capabilities.table_import);
assert!(goldendb.capabilities.data_transfer);
}
#[test]
fn highgo_declares_data_transfer_support() {
let manifest = driver_manifest();
let highgo =
manifest.drivers.iter().find(|driver| driver.db_type == DatabaseType::Highgo).expect("HighGo manifest entry");
assert!(highgo.capabilities.table_import);
assert!(highgo.capabilities.data_transfer);
}
+1 -1
View File
@@ -28,7 +28,7 @@ capabilities:
tableDataEdit: true
tableStructureEdit: true
tableImport: true
dataTransfer: false
dataTransfer: true
sqlFileExecution: true
databaseCreate: true
fieldLineage: false