25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
feat(database): add agent database profiles
t8y2b16393f68c6f
diff --git a/apps/desktop/public/icons/database/databricks.webp b/apps/desktop/public/icons/database/databricks.webpnew file mode 100644index 0000000000..0a74319cffBinary files /dev/null and b/apps/desktop/public/icons/database/databricks.webp differdiff --git a/apps/desktop/public/icons/database/exasol.webp b/apps/desktop/public/icons/database/exasol.webpnew file mode 100644index 0000000000..00b340da9bBinary files /dev/null and b/apps/desktop/public/icons/database/exasol.webp differdiff --git a/apps/desktop/public/icons/database/firebird.webp b/apps/desktop/public/icons/database/firebird.webpnew file mode 100644index 0000000000..fd84e6f761Binary files /dev/null and b/apps/desktop/public/icons/database/firebird.webp differdiff --git a/apps/desktop/public/icons/database/gbase.webp b/apps/desktop/public/icons/database/gbase.webpnew file mode 100644index 0000000000..6a4bb56cb1Binary files /dev/null and b/apps/desktop/public/icons/database/gbase.webp differdiff --git a/apps/desktop/public/icons/database/greatsql.webp b/apps/desktop/public/icons/database/greatsql.webpnew file mode 100644index 0000000000..c7bd0562d2Binary files /dev/null and b/apps/desktop/public/icons/database/greatsql.webp differdiff --git a/apps/desktop/public/icons/database/polardb.webp b/apps/desktop/public/icons/database/polardb.webpnew file mode 100644index 0000000000..7363a49196Binary files /dev/null and b/apps/desktop/public/icons/database/polardb.webp differdiff --git a/apps/desktop/public/icons/database/saphana.webp b/apps/desktop/public/icons/database/saphana.webpnew file mode 100644index 0000000000..ca36c34074Binary files /dev/null and b/apps/desktop/public/icons/database/saphana.webp differdiff --git a/apps/desktop/public/icons/database/tdsql.webp b/apps/desktop/public/icons/database/tdsql.webpnew file mode 100644index 0000000000..c6e6703738Binary files /dev/null and b/apps/desktop/public/icons/database/tdsql.webp differdiff --git a/apps/desktop/public/icons/database/teradata.webp b/apps/desktop/public/icons/database/teradata.webpnew file mode 100644index 0000000000..cc357589ecBinary files /dev/null and b/apps/desktop/public/icons/database/teradata.webp differdiff --git a/apps/desktop/public/icons/database/vertica.webp b/apps/desktop/public/icons/database/vertica.webpnew file mode 100644index 0000000000..0ec01a3112Binary files /dev/null and b/apps/desktop/public/icons/database/vertica.webp differdiff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vueindex 0748f85c22..b74150c1a2 100644--- a/apps/desktop/src/components/connection/ConnectionDialog.vue+++ b/apps/desktop/src/components/connection/ConnectionDialog.vue@@ -152,9 +152,26 @@ const driverProfiles: Record<mariadb: { type: "mysql", port: 3306, user: "root", label: "MariaDB", icon: "mariadb" },tidb: { type: "mysql", port: 4000, user: "root", label: "TiDB", icon: "tidb" },oceanbase: { type: "mysql", port: 2881, user: "root", label: "OceanBase", icon: "oceanbase" },+ "oceanbase-oracle": {+ type: "oceanbase-oracle",+ port: 2881,+ user: "SYS",+ label: "OceanBase Oracle Mode",+ icon: "oceanbase",+ },goldendb: { type: "goldendb", port: 3306, user: "root", label: "GoldenDB", icon: "goldendb" },+ tdsql: { type: "mysql", port: 3306, user: "root", label: "TDSQL", icon: "tdsql" },+ polardb: { type: "mysql", port: 3306, user: "root", label: "PolarDB", icon: "polardb" },+ greatsql: { type: "mysql", port: 3306, user: "root", label: "GreatSQL", icon: "greatsql" },+ databricks: { type: "databricks", port: 443, user: "token", label: "Databricks SQL", icon: "databricks" },+ saphana: { type: "saphana", port: 30015, user: "SYSTEM", label: "SAP HANA", icon: "saphana" },+ teradata: { type: "teradata", port: 1025, user: "", label: "Teradata", icon: "teradata" },+ vertica: { type: "vertica", port: 5433, user: "dbadmin", label: "Vertica", icon: "vertica" },+ firebird: { type: "firebird", port: 3050, user: "SYSDBA", label: "Firebird", icon: "firebird" },+ exasol: { type: "exasol", port: 8563, user: "sys", label: "Exasol", icon: "exasol" },+ gbase: { type: "gbase", port: 5258, user: "gbasedbt", label: "GBase", icon: "gbase" },opengauss: {- type: "gaussdb",+ type: "opengauss",port: 5432,user: "gaussdb",label: "openGauss",@@ -374,7 +391,18 @@ const iconTypeMap: Record<string, string> = {mariadb: "mariadb",tidb: "tidb",oceanbase: "oceanbase",+ "oceanbase-oracle": "oceanbase",goldendb: "goldendb",+ tdsql: "tdsql",+ polardb: "polardb",+ greatsql: "greatsql",+ databricks: "databricks",+ saphana: "saphana",+ teradata: "teradata",+ vertica: "vertica",+ firebird: "firebird",+ exasol: "exasol",+ gbase: "gbase",opengauss: "opengauss",gaussdb: "gaussdb",kingbase: "kingbase",@@ -421,11 +449,22 @@ const dbOptions = [{ value: "gaussdb", label: "GaussDB" },{ value: "tidb", label: "TiDB" },{ value: "oceanbase", label: "OceanBase" },+ { value: "oceanbase-oracle", label: "OceanBase Oracle Mode" },{ value: "goldendb", label: "GoldenDB" },+ { value: "tdsql", label: "TDSQL" },+ { value: "polardb", label: "PolarDB" },+ { value: "greatsql", label: "GreatSQL" },{ value: "doris", label: "Doris" },{ value: "selectdb", label: "SelectDB" },{ value: "starrocks", label: "StarRocks" },{ value: "tdengine", label: "TDengine" },+ { value: "databricks", label: "Databricks SQL" },+ { value: "saphana", label: "SAP HANA" },+ { value: "teradata", label: "Teradata" },+ { value: "vertica", label: "Vertica" },+ { value: "firebird", label: "Firebird" },+ { value: "exasol", label: "Exasol" },+ { value: "gbase", label: "GBase" },{ value: "opengauss", label: "openGauss" },{ value: "kingbase", label: "KingBase" },{ value: "highgo", label: "瀚高 HighGo" },diff --git a/apps/desktop/src/components/icons/DatabaseIcon.vue b/apps/desktop/src/components/icons/DatabaseIcon.vueindex 91ebc7bc9f..906a6c141d 100644--- a/apps/desktop/src/components/icons/DatabaseIcon.vue+++ b/apps/desktop/src/components/icons/DatabaseIcon.vue@@ -52,6 +52,16 @@ const assetIcons: Record<string, string> = {redshift: "redshift",neo4j: "neo4j",informix: "informix",+ databricks: "databricks.webp",+ saphana: "saphana.webp",+ teradata: "teradata.webp",+ vertica: "vertica.webp",+ firebird: "firebird.webp",+ exasol: "exasol.webp",+ gbase: "gbase.webp",+ tdsql: "tdsql.webp",+ polardb: "polardb.webp",+ greatsql: "greatsql.webp",};const letterIcons: Record<string, { letter: string; color: string }> = {};diff --git a/apps/desktop/src/lib/databaseCapabilitySets.ts b/apps/desktop/src/lib/databaseCapabilitySets.tsindex 3ff57e3e24..fd8bd3daae 100644--- a/apps/desktop/src/lib/databaseCapabilitySets.ts+++ b/apps/desktop/src/lib/databaseCapabilitySets.ts@@ -11,6 +11,14 @@ export const SCHEMA_AWARE_TYPES = new Set<DatabaseType>(["highgo","vastbase","yashandb",+ "databricks",+ "saphana",+ "teradata",+ "vertica",+ "exasol",+ "opengauss",+ "oceanbase-oracle",+ "gbase","jdbc","h2","snowflake",@@ -35,6 +43,15 @@ export const DIAGRAM_SUPPORTED_TYPES = new Set<DatabaseType>(["vastbase","goldendb","yashandb",+ "databricks",+ "saphana",+ "teradata",+ "vertica",+ "firebird",+ "exasol",+ "opengauss",+ "oceanbase-oracle",+ "gbase","access","h2","db2",@@ -56,6 +73,15 @@ export const DATABASE_SEARCH_SUPPORTED_TYPES = new Set<DatabaseType>(["vastbase","goldendb","yashandb",+ "databricks",+ "saphana",+ "teradata",+ "vertica",+ "firebird",+ "exasol",+ "opengauss",+ "oceanbase-oracle",+ "gbase","access","h2","snowflake",@@ -110,6 +136,8 @@ export const CREATE_DATABASE_SUPPORTED_TYPES = new Set<DatabaseType>(["oracle","dameng","gaussdb",+ "opengauss",+ "oceanbase-oracle","doris","starrocks","redshift",@@ -124,9 +152,17 @@ export const FIELD_LINEAGE_SUPPORTED_TYPES = new Set<DatabaseType>(["redshift","dameng","gaussdb",+ "opengauss",+ "oceanbase-oracle",]);-export const SINGLE_DATABASE_TYPES = new Set<DatabaseType>(["oracle", "dameng", "access"]);+export const SINGLE_DATABASE_TYPES = new Set<DatabaseType>([+ "oracle",+ "dameng",+ "firebird",+ "oceanbase-oracle",+ "access",+]);export const FETCH_FIRST_TYPES = new Set<DatabaseType>(["oracle", "dameng"]);@@ -139,13 +175,21 @@ export const TREE_SCHEMA_TYPES = new Set<DatabaseType>(["highgo","vastbase","yashandb",+ "databricks",+ "saphana",+ "teradata",+ "vertica",+ "exasol",+ "opengauss",+ "oceanbase-oracle",+ "gbase","jdbc","trino","h2","tdengine",]);-export const PG_LIKE_STRUCTURE_TYPES = new Set<DatabaseType>(["postgres", "redshift", "gaussdb"]);+export const PG_LIKE_STRUCTURE_TYPES = new Set<DatabaseType>(["postgres", "redshift", "gaussdb", "opengauss"]);export const AGENT_DRIVER_TYPES = new Set<DatabaseType>(["dameng",@@ -154,6 +198,15 @@ export const AGENT_DRIVER_TYPES = new Set<DatabaseType>(["vastbase","yashandb","goldendb",+ "databricks",+ "saphana",+ "teradata",+ "vertica",+ "firebird",+ "exasol",+ "opengauss",+ "oceanbase-oracle",+ "gbase","access","oracle","h2",@@ -181,6 +234,8 @@ export const TRANSFER_SQL_TYPES = new Set<DatabaseType>(["duckdb","dameng","gaussdb",+ "opengauss",+ "oceanbase-oracle",]);export const DIAGRAM_SQL_TYPES = new Set<DatabaseType>([@@ -192,4 +247,6 @@ export const DIAGRAM_SQL_TYPES = new Set<DatabaseType>(["redshift","dameng","gaussdb",+ "opengauss",+ "oceanbase-oracle",]);diff --git a/apps/desktop/src/types/database.ts b/apps/desktop/src/types/database.tsindex 516f28ff9b..71d2ad9692 100644--- a/apps/desktop/src/types/database.ts+++ b/apps/desktop/src/types/database.ts@@ -19,6 +19,15 @@ export type DatabaseType =| "vastbase"| "goldendb"| "yashandb"+ | "databricks"+ | "saphana"+ | "teradata"+ | "vertica"+ | "firebird"+ | "exasol"+ | "opengauss"+ | "oceanbase-oracle"+ | "gbase"| "access"| "h2"| "snowflake"diff --git a/crates/dbx-core/src/agent_service.rs b/crates/dbx-core/src/agent_service.rsindex 9e6dd3062c..d82a4e81f9 100644--- a/crates/dbx-core/src/agent_service.rs+++ b/crates/dbx-core/src/agent_service.rs@@ -14,6 +14,15 @@ pub const AGENT_TYPES: &[(&str, &str)] = &[("highgo", "瀚高 HighGo"),("vastbase", "Vastbase"),("goldendb", "GoldenDB"),+ ("databricks", "Databricks SQL"),+ ("saphana", "SAP HANA"),+ ("teradata", "Teradata"),+ ("vertica", "Vertica"),+ ("firebird", "Firebird"),+ ("exasol", "Exasol"),+ ("opengauss", "openGauss"),+ ("oceanbase-oracle", "OceanBase Oracle Mode"),+ ("gbase", "GBase"),("access", "Microsoft Access"),("oracle", "Oracle"),("oracle-10g", "Oracle 10g"),diff --git a/crates/dbx-core/src/connection.rs b/crates/dbx-core/src/connection.rsindex 3ba5ce439e..6dcfd1ea6f 100644--- a/crates/dbx-core/src/connection.rs+++ b/crates/dbx-core/src/connection.rs@@ -71,7 +71,7 @@ pub fn metadata_connection_config(config: &ConnectionConfig) -> ConnectionConfigpub fn database_connection_config(config: &ConnectionConfig, database: Option<&str>) -> ConnectionConfig {let mut db_config = if database.is_some() { config.clone() } else { metadata_connection_config(config) };if let Some(db) = database {- if !matches!(db_config.db_type, DatabaseType::Oracle | DatabaseType::Dameng) {+ if !matches!(db_config.db_type, DatabaseType::Oracle | DatabaseType::Dameng | DatabaseType::OceanbaseOracle) {db_config.database = Some(db.to_string());}}@@ -233,6 +233,15 @@ impl AppState {| DatabaseType::Vastbase| DatabaseType::Goldendb| DatabaseType::Yashandb+ | DatabaseType::Databricks+ | DatabaseType::SapHana+ | DatabaseType::Teradata+ | DatabaseType::Vertica+ | DatabaseType::Firebird+ | DatabaseType::Exasol+ | DatabaseType::OpenGauss+ | DatabaseType::OceanbaseOracle+ | DatabaseType::Gbase| DatabaseType::Oracle| DatabaseType::H2| DatabaseType::Snowflakediff --git a/crates/dbx-core/src/database_capabilities.rs b/crates/dbx-core/src/database_capabilities.rsindex f0a2eef3a4..f23864e810 100644--- a/crates/dbx-core/src/database_capabilities.rs+++ b/crates/dbx-core/src/database_capabilities.rs@@ -8,6 +8,15 @@ pub fn agent_key(db_type: &DatabaseType, driver_profile: Option<&str>) -> OptionDatabaseType::Vastbase => Some("vastbase"),DatabaseType::Goldendb => Some("goldendb"),DatabaseType::Yashandb => Some("yashandb"),+ DatabaseType::Databricks => Some("databricks"),+ DatabaseType::SapHana => Some("saphana"),+ DatabaseType::Teradata => Some("teradata"),+ DatabaseType::Vertica => Some("vertica"),+ DatabaseType::Firebird => Some("firebird"),+ DatabaseType::Exasol => Some("exasol"),+ DatabaseType::OpenGauss => Some("opengauss"),+ DatabaseType::OceanbaseOracle => Some("oceanbase-oracle"),+ DatabaseType::Gbase => Some("gbase"),DatabaseType::Oracle => match driver_profile {Some("oracle-10g") => Some("oracle-10g"),_ => Some("oracle"),@@ -47,6 +56,8 @@ pub fn is_single_connection_pool(db_type: &DatabaseType) -> bool {| DatabaseType::Vastbase| DatabaseType::Goldendb| DatabaseType::Yashandb+ | DatabaseType::Firebird+ | DatabaseType::OceanbaseOracle| DatabaseType::Access| DatabaseType::Jdbc)diff --git a/crates/dbx-core/src/models/connection.rs b/crates/dbx-core/src/models/connection.rsindex 6a76bfe715..a803646f74 100644--- a/crates/dbx-core/src/models/connection.rs+++ b/crates/dbx-core/src/models/connection.rs@@ -131,6 +131,18 @@ pub enum DatabaseType {Goldendb,Gaussdb,Yashandb,+ Databricks,+ #[serde(rename = "saphana")]+ SapHana,+ Teradata,+ Vertica,+ Firebird,+ Exasol,+ #[serde(rename = "opengauss")]+ OpenGauss,+ #[serde(rename = "oceanbase-oracle")]+ OceanbaseOracle,+ Gbase,Access,#[serde(rename = "h2")]H2,@@ -175,10 +187,11 @@ impl ConnectionConfig {_ => Some("postgres"),},DatabaseType::Redshift => Some("dev"),- DatabaseType::Gaussdb => Some("postgres"),+ DatabaseType::Gaussdb | DatabaseType::OpenGauss => Some("postgres"),DatabaseType::Kingbase | DatabaseType::Vastbase => Some("postgres"),DatabaseType::Highgo => Some("highgo"),DatabaseType::Yashandb => Some("yasdb"),+ DatabaseType::Firebird => Some("employee"),_ => None,}}@@ -272,6 +285,15 @@ impl ConnectionConfig {DatabaseType::Goldendb => format!("goldendb://{host}:{port}{db_part}"),DatabaseType::Gaussdb => format!("gaussdb://{host}:{port}{db_part}"),DatabaseType::Yashandb => format!("yashandb://{host}:{port}{db_part}"),+ DatabaseType::Databricks => format!("databricks://{host}:{port}{db_part}"),+ DatabaseType::SapHana => format!("saphana://{host}:{port}{db_part}"),+ DatabaseType::Teradata => format!("teradata://{host}:{port}{db_part}"),+ DatabaseType::Vertica => format!("vertica://{host}:{port}{db_part}"),+ DatabaseType::Firebird => format!("firebird://{host}:{port}{db_part}"),+ DatabaseType::Exasol => format!("exasol://{host}:{port}{db_part}"),+ DatabaseType::OpenGauss => format!("opengauss://{host}:{port}{db_part}"),+ DatabaseType::OceanbaseOracle => format!("oceanbase-oracle://{host}:{port}{db_part}"),+ DatabaseType::Gbase => format!("gbase://{host}:{port}{db_part}"),DatabaseType::H2 => format!("h2://{host}:{port}{db_part}"),DatabaseType::Snowflake => format!("snowflake://{host}/{db_part}"),DatabaseType::Trino => format!("trino://{host}:{port}{db_part}"),@@ -374,6 +396,33 @@ impl ConnectionConfig {DatabaseType::Yashandb => {format!("yashandb://{}:{}@{host}:{port}{db_part}", username, password)}+ DatabaseType::Databricks => {+ format!("databricks://{}:{}@{host}:{port}{db_part}", username, password)+ }+ DatabaseType::SapHana => {+ format!("saphana://{}:{}@{host}:{port}{db_part}", username, password)+ }+ DatabaseType::Teradata => {+ format!("teradata://{}:{}@{host}:{port}{db_part}", username, password)+ }+ DatabaseType::Vertica => {+ format!("vertica://{}:{}@{host}:{port}{db_part}", username, password)+ }+ DatabaseType::Firebird => {+ format!("firebird://{}:{}@{host}:{port}{db_part}", username, password)+ }+ DatabaseType::Exasol => {+ format!("exasol://{}:{}@{host}:{port}{db_part}", username, password)+ }+ DatabaseType::OpenGauss => {+ format!("opengauss://{}:{}@{host}:{port}{db_part}", username, password)+ }+ DatabaseType::OceanbaseOracle => {+ format!("oceanbase-oracle://{}:{}@{host}:{port}{db_part}", username, password)+ }+ DatabaseType::Gbase => {+ format!("gbase://{}:{}@{host}:{port}{db_part}", username, password)+ }DatabaseType::H2 => {format!("h2://{}:{}@{host}:{port}{db_part}", username, password)}diff --git a/crates/dbx-core/tests/database_capabilities.rs b/crates/dbx-core/tests/database_capabilities.rsindex 1668ce956d..660d72b611 100644--- a/crates/dbx-core/tests/database_capabilities.rs+++ b/crates/dbx-core/tests/database_capabilities.rs@@ -10,6 +10,15 @@ fn maps_agent_database_types_to_driver_keys() {assert_eq!(agent_key(&DatabaseType::Gaussdb, None), Some("gaussdb"));assert_eq!(agent_key(&DatabaseType::Tdengine, None), Some("tdengine"));assert_eq!(agent_key(&DatabaseType::Yashandb, None), Some("yashandb"));+ assert_eq!(agent_key(&DatabaseType::Databricks, None), Some("databricks"));+ assert_eq!(agent_key(&DatabaseType::SapHana, None), Some("saphana"));+ assert_eq!(agent_key(&DatabaseType::Teradata, None), Some("teradata"));+ assert_eq!(agent_key(&DatabaseType::Vertica, None), Some("vertica"));+ assert_eq!(agent_key(&DatabaseType::Firebird, None), Some("firebird"));+ assert_eq!(agent_key(&DatabaseType::Exasol, None), Some("exasol"));+ assert_eq!(agent_key(&DatabaseType::OpenGauss, None), Some("opengauss"));+ assert_eq!(agent_key(&DatabaseType::OceanbaseOracle, None), Some("oceanbase-oracle"));+ assert_eq!(agent_key(&DatabaseType::Gbase, None), Some("gbase"));assert_eq!(agent_key(&DatabaseType::Access, None), Some("access"));assert_eq!(agent_key(&DatabaseType::Oracle, None), Some("oracle"));assert_eq!(agent_key(&DatabaseType::Oracle, Some("oracle-10g")), Some("oracle-10g"));@@ -23,6 +32,15 @@ fn classifies_agent_database_types() {assert!(is_agent_type(&DatabaseType::Hive));assert!(is_agent_type(&DatabaseType::Tdengine));assert!(is_agent_type(&DatabaseType::Yashandb));+ assert!(is_agent_type(&DatabaseType::Databricks));+ assert!(is_agent_type(&DatabaseType::SapHana));+ assert!(is_agent_type(&DatabaseType::Teradata));+ assert!(is_agent_type(&DatabaseType::Vertica));+ assert!(is_agent_type(&DatabaseType::Firebird));+ assert!(is_agent_type(&DatabaseType::Exasol));+ assert!(is_agent_type(&DatabaseType::OpenGauss));+ assert!(is_agent_type(&DatabaseType::OceanbaseOracle));+ assert!(is_agent_type(&DatabaseType::Gbase));assert!(is_agent_type(&DatabaseType::Access));assert!(!is_agent_type(&DatabaseType::Mysql));assert!(!is_agent_type(&DatabaseType::Jdbc));@@ -36,6 +54,8 @@ fn identifies_single_connection_pool_types() {assert!(is_single_connection_pool(&DatabaseType::Dameng));assert!(is_single_connection_pool(&DatabaseType::Access));assert!(is_single_connection_pool(&DatabaseType::Yashandb));+ assert!(is_single_connection_pool(&DatabaseType::Firebird));+ assert!(is_single_connection_pool(&DatabaseType::OceanbaseOracle));assert!(is_single_connection_pool(&DatabaseType::Jdbc));assert!(!is_single_connection_pool(&DatabaseType::Trino));assert!(!is_single_connection_pool(&DatabaseType::Postgres));@@ -60,6 +80,9 @@ fn skips_tcp_probe_for_local_file_plugin_and_agent_types() {assert!(skips_tcp_probe(&DatabaseType::Oracle));assert!(skips_tcp_probe(&DatabaseType::Tdengine));assert!(skips_tcp_probe(&DatabaseType::Yashandb));+ assert!(skips_tcp_probe(&DatabaseType::Databricks));+ assert!(skips_tcp_probe(&DatabaseType::OceanbaseOracle));+ assert!(skips_tcp_probe(&DatabaseType::Gbase));assert!(!skips_tcp_probe(&DatabaseType::Postgres));assert!(!skips_tcp_probe(&DatabaseType::Mysql));}diff --git a/packages/app-tests/databaseCapabilities.test.ts b/packages/app-tests/databaseCapabilities.test.tsindex f5573a7f4f..67fd25f73f 100644--- a/packages/app-tests/databaseCapabilities.test.ts+++ b/packages/app-tests/databaseCapabilities.test.ts@@ -37,6 +37,28 @@ test("treats Access as a local single-database agent driver", () => {assert.equal(supportsTableImport("access"), true);});+test("exposes the extended JDBC agent ecosystem through driver management", () => {+ for (const dbType of [+ "databricks",+ "saphana",+ "teradata",+ "vertica",+ "firebird",+ "exasol",+ "opengauss",+ "oceanbase-oracle",+ "gbase",+ ] as const) {+ assert.equal(supportsDriverManagement(dbType), true, `${dbType} should be agent-managed`);+ assert.equal(supportsDatabaseSearch(dbType), true, `${dbType} should support database search`);+ }++ assert.equal(SCHEMA_AWARE_TYPES.has("databricks"), true);+ assert.equal(SCHEMA_AWARE_TYPES.has("opengauss"), true);+ assert.equal(SCHEMA_AWARE_TYPES.has("oceanbase-oracle"), true);+ assert.equal(SCHEMA_AWARE_TYPES.has("firebird"), false);+});+test("describes schema tree mode through the capability helper", () => {assert.equal(usesTreeSchemaMode("trino"), true);assert.equal(usesTreeSchemaMode("h2"), true);diff --git a/packages/app-tests/databaseIconAssets.test.ts b/packages/app-tests/databaseIconAssets.test.tsnew file mode 100644index 0000000000..da7db53d4f--- /dev/null+++ b/packages/app-tests/databaseIconAssets.test.ts@@ -0,0 +1,34 @@+import { existsSync, readFileSync } from "node:fs";+import { join } from "node:path";+import assert from "node:assert/strict";+import test from "node:test";++const connectionDialogSource = readFileSync("apps/desktop/src/components/connection/ConnectionDialog.vue", "utf8");+const databaseIconSource = readFileSync("apps/desktop/src/components/icons/DatabaseIcon.vue", "utf8");++const expectedIconNames = [+ "databricks",+ "saphana",+ "teradata",+ "vertica",+ "firebird",+ "exasol",+ "gbase",+ "tdsql",+ "polardb",+ "greatsql",+] as const;++test("new database profiles use dedicated icon identities", () => {+ for (const iconName of expectedIconNames) {+ assert.match(connectionDialogSource, new RegExp(`${iconName}: \\{[^}]*icon: "${iconName}"`, "s"));+ assert.match(databaseIconSource, new RegExp(`${iconName}: "${iconName}\\.webp"`));+ }+});++test("new database favicon assets exist", () => {+ for (const iconName of expectedIconNames) {+ const iconPath = join("apps/desktop/public/icons/database", `${iconName}.webp`);+ assert.equal(existsSync(iconPath), true, `${iconPath} should exist`);+ }+});