feat(database): add agent database profiles
This commit is contained in:
1 parent
b424816f74
commit
b16393f68c
21 files changed
+277
-5
No files matched your search
@@ -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" },
|
||||
|
||||
@@ -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 }> = {};
|
||||
|
||||
@@ -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",
|
||||
]);
|
||||
@@ -19,6 +19,15 @@ export type DatabaseType =
|
||||
| "vastbase"
|
||||
| "goldendb"
|
||||
| "yashandb"
|
||||
| "databricks"
|
||||
| "saphana"
|
||||
| "teradata"
|
||||
| "vertica"
|
||||
| "firebird"
|
||||
| "exasol"
|
||||
| "opengauss"
|
||||
| "oceanbase-oracle"
|
||||
| "gbase"
|
||||
| "access"
|
||||
| "h2"
|
||||
| "snowflake"
|
||||
|
||||
Reference in new issue
Block a user