feat(ui): 补充国产数据库中文品牌名称
Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
This commit is contained in:
1 parent
a6d335fff9
commit
e1822cb704
7 files changed
+39
-36
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 5.4 KiB |
@@ -924,7 +924,7 @@ const driverProfiles: Record<
|
|||||||
label: "OceanBase Oracle Mode",
|
label: "OceanBase Oracle Mode",
|
||||||
icon: "oceanbase",
|
icon: "oceanbase",
|
||||||
},
|
},
|
||||||
goldendb: { type: "goldendb", port: 3306, user: "root", label: "GoldenDB", icon: "goldendb" },
|
goldendb: { type: "goldendb", port: 3306, user: "root", label: "金篆 GoldenDB", icon: "goldendb" },
|
||||||
databend: { type: "databend", port: 8000, user: "databend", label: "Databend", icon: "databend" },
|
databend: { type: "databend", port: 8000, user: "databend", label: "Databend", icon: "databend" },
|
||||||
tdsql: { type: "mysql", port: 3306, user: "root", label: "TDSQL", icon: "tdsql" },
|
tdsql: { type: "mysql", port: 3306, user: "root", label: "TDSQL", icon: "tdsql" },
|
||||||
polardb: { type: "mysql", port: 3306, user: "root", label: "PolarDB", icon: "polardb" },
|
polardb: { type: "mysql", port: 3306, user: "root", label: "PolarDB", icon: "polardb" },
|
||||||
@@ -935,9 +935,9 @@ const driverProfiles: Record<
|
|||||||
vertica: { type: "vertica", port: 5433, user: "dbadmin", label: "Vertica", icon: "vertica" },
|
vertica: { type: "vertica", port: 5433, user: "dbadmin", label: "Vertica", icon: "vertica" },
|
||||||
firebird: { type: "firebird", port: 3050, user: "SYSDBA", label: "Firebird", icon: "firebird" },
|
firebird: { type: "firebird", port: 3050, user: "SYSDBA", label: "Firebird", icon: "firebird" },
|
||||||
exasol: { type: "exasol", port: 8563, user: "sys", label: "Exasol", icon: "exasol" },
|
exasol: { type: "exasol", port: 8563, user: "sys", label: "Exasol", icon: "exasol" },
|
||||||
gbase: { type: "gbase", port: 5258, user: "gbasedbt", label: "GBase 8a", icon: "gbase" },
|
gbase: { type: "gbase", port: 5258, user: "gbasedbt", label: "南大通用 GBase 8a", icon: "gbase" },
|
||||||
gbase8a: { type: "gbase", port: 5258, user: "gbasedbt", label: "GBase 8a", icon: "gbase" },
|
gbase8a: { type: "gbase", port: 5258, user: "gbasedbt", label: "南大通用 GBase 8a", icon: "gbase" },
|
||||||
gbase8s: { type: "gbase", port: 9088, user: "gbasedbt", label: "GBase 8s", icon: "gbase" },
|
gbase8s: { type: "gbase", port: 9088, user: "gbasedbt", label: "南大通用 GBase 8s", icon: "gbase" },
|
||||||
opengauss: {
|
opengauss: {
|
||||||
type: "opengauss",
|
type: "opengauss",
|
||||||
port: 5432,
|
port: 5432,
|
||||||
@@ -948,11 +948,11 @@ const driverProfiles: Record<
|
|||||||
gaussdb: { type: "gaussdb", port: 5432, user: "gaussdb", label: "GaussDB", icon: "gaussdb" },
|
gaussdb: { type: "gaussdb", port: 5432, user: "gaussdb", label: "GaussDB", icon: "gaussdb" },
|
||||||
kwdb: { type: "kwdb", port: 26257, user: "root", label: "KWDB", icon: "kwdb" },
|
kwdb: { type: "kwdb", port: 26257, user: "root", label: "KWDB", icon: "kwdb" },
|
||||||
questdb: { type: "questdb", port: 8812, user: "questdb", label: "QuestDB", icon: "questdb" },
|
questdb: { type: "questdb", port: 8812, user: "questdb", label: "QuestDB", icon: "questdb" },
|
||||||
kingbase: { type: "kingbase", port: 54321, user: "system", label: "KingBase", icon: "kingbase" },
|
kingbase: { type: "kingbase", port: 54321, user: "system", label: "人大金仓 KingbaseES", icon: "kingbase" },
|
||||||
highgo: { type: "highgo", port: 5866, user: "highgo", label: "瀚高 HighGo", icon: "highgo" },
|
highgo: { type: "highgo", port: 5866, user: "highgo", label: "瀚高 HighGo", icon: "highgo" },
|
||||||
uxdb: { type: "uxdb", port: 52025, user: "uxdb", label: "优炫 UXDB", icon: "uxdb" },
|
uxdb: { type: "uxdb", port: 52025, user: "uxdb", label: "优炫 UXDB", icon: "uxdb" },
|
||||||
yashandb: { type: "yashandb", port: 1688, user: "sys", label: "崖山 YashanDB", icon: "yashandb" },
|
yashandb: { type: "yashandb", port: 1688, user: "sys", label: "崖山 YashanDB", icon: "yashandb" },
|
||||||
vastbase: { type: "vastbase", port: 5432, user: "vastbase", label: "Vastbase", icon: "vastbase" },
|
vastbase: { type: "vastbase", port: 5432, user: "vastbase", label: "海量 Vastbase", icon: "vastbase" },
|
||||||
doris: { type: "mysql", port: 9030, user: "root", label: "Doris", icon: "doris", urlParams: "" },
|
doris: { type: "mysql", port: 9030, user: "root", label: "Doris", icon: "doris", urlParams: "" },
|
||||||
selectdb: {
|
selectdb: {
|
||||||
type: "mysql",
|
type: "mysql",
|
||||||
@@ -1009,7 +1009,7 @@ const driverProfiles: Record<
|
|||||||
host: "https://www.googleapis.com/bigquery/v2",
|
host: "https://www.googleapis.com/bigquery/v2",
|
||||||
},
|
},
|
||||||
kylin: { type: "kylin", port: 7070, user: "ADMIN", label: "Apache Kylin", icon: "kylin" },
|
kylin: { type: "kylin", port: 7070, user: "ADMIN", label: "Apache Kylin", icon: "kylin" },
|
||||||
sundb: { type: "sundb", port: 22000, user: "root", label: "SunDB", icon: "sundb" },
|
sundb: { type: "sundb", port: 22000, user: "root", label: "科蓝 SUNDB", icon: "sundb" },
|
||||||
oscar: { type: "oscar", port: 2003, user: "SYSDBA", label: "神通 OSCAR", icon: "oscar" },
|
oscar: { type: "oscar", port: 2003, user: "SYSDBA", label: "神通 OSCAR", icon: "oscar" },
|
||||||
jdbc: { type: "jdbc", port: 0, user: "", label: "JDBC", icon: "jdbc" },
|
jdbc: { type: "jdbc", port: 0, user: "", label: "JDBC", icon: "jdbc" },
|
||||||
tdengine: { type: "tdengine", port: 6041, user: "root", label: "TDengine", icon: "tdengine" },
|
tdengine: { type: "tdengine", port: 6041, user: "root", label: "TDengine", icon: "tdengine" },
|
||||||
@@ -2471,7 +2471,7 @@ const dbOptions: DbOption[] = [
|
|||||||
{ value: "questdb", label: "QuestDB" },
|
{ value: "questdb", label: "QuestDB" },
|
||||||
{ value: "tidb", label: "TiDB" },
|
{ value: "tidb", label: "TiDB" },
|
||||||
{ value: "oceanbase", label: "OceanBase" },
|
{ value: "oceanbase", label: "OceanBase" },
|
||||||
{ value: "goldendb", label: "GoldenDB" },
|
{ value: "goldendb", label: "金篆 GoldenDB" },
|
||||||
{ value: "databend", label: "Databend" },
|
{ value: "databend", label: "Databend" },
|
||||||
{ value: "tdsql", label: "TDSQL" },
|
{ value: "tdsql", label: "TDSQL" },
|
||||||
{ value: "polardb", label: "PolarDB" },
|
{ value: "polardb", label: "PolarDB" },
|
||||||
@@ -2486,12 +2486,12 @@ const dbOptions: DbOption[] = [
|
|||||||
{ value: "vertica", label: "Vertica" },
|
{ value: "vertica", label: "Vertica" },
|
||||||
{ value: "firebird", label: "Firebird" },
|
{ value: "firebird", label: "Firebird" },
|
||||||
{ value: "exasol", label: "Exasol" },
|
{ value: "exasol", label: "Exasol" },
|
||||||
{ value: "gbase", label: "GBase" },
|
{ value: "gbase", label: "南大通用 GBase" },
|
||||||
{ value: "kingbase", label: "KingBase" },
|
{ value: "kingbase", label: "人大金仓 KingbaseES" },
|
||||||
{ value: "highgo", label: "瀚高 HighGo" },
|
{ value: "highgo", label: "瀚高 HighGo" },
|
||||||
{ value: "uxdb", label: "优炫 UXDB" },
|
{ value: "uxdb", label: "优炫 UXDB" },
|
||||||
{ value: "yashandb", label: "崖山 YashanDB" },
|
{ value: "yashandb", label: "崖山 YashanDB" },
|
||||||
{ value: "vastbase", label: "Vastbase" },
|
{ value: "vastbase", label: "海量 Vastbase" },
|
||||||
{ value: "redshift", label: "Redshift" },
|
{ value: "redshift", label: "Redshift" },
|
||||||
{ value: "cockroachdb", label: "CockroachDB" },
|
{ value: "cockroachdb", label: "CockroachDB" },
|
||||||
{ value: "h2", label: "H2" },
|
{ value: "h2", label: "H2" },
|
||||||
@@ -2506,7 +2506,7 @@ const dbOptions: DbOption[] = [
|
|||||||
{ value: "cassandra", label: "Cassandra" },
|
{ value: "cassandra", label: "Cassandra" },
|
||||||
{ value: "bigquery", label: "BigQuery" },
|
{ value: "bigquery", label: "BigQuery" },
|
||||||
{ value: "kylin", label: "Kylin" },
|
{ value: "kylin", label: "Kylin" },
|
||||||
{ value: "sundb", label: "SunDB" },
|
{ value: "sundb", label: "科蓝 SUNDB" },
|
||||||
{ value: "oscar", label: "神通 OSCAR" },
|
{ value: "oscar", label: "神通 OSCAR" },
|
||||||
{ value: "xugu", label: "虚谷 XuguDB" },
|
{ value: "xugu", label: "虚谷 XuguDB" },
|
||||||
{ value: "iotdb", label: "Apache IoTDB" },
|
{ value: "iotdb", label: "Apache IoTDB" },
|
||||||
@@ -4943,6 +4943,7 @@ function openExternalUrl(url: string) {
|
|||||||
v-for="opt in category.options"
|
v-for="opt in category.options"
|
||||||
:key="opt.value"
|
:key="opt.value"
|
||||||
type="button"
|
type="button"
|
||||||
|
:title="opt.label"
|
||||||
class="connection-db-picker-option group flex min-h-24 flex-col items-center justify-center gap-2 rounded-[4px] border bg-background/70 p-3 text-center transition hover:border-primary/40 hover:bg-muted/40 hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
class="connection-db-picker-option group flex min-h-24 flex-col items-center justify-center gap-2 rounded-[4px] border bg-background/70 p-3 text-center transition hover:border-primary/40 hover:bg-muted/40 hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
||||||
:class="selectedType === opt.value ? 'dbx-tile-selected shadow-sm' : 'border-border'"
|
:class="selectedType === opt.value ? 'dbx-tile-selected shadow-sm' : 'border-border'"
|
||||||
:aria-pressed="selectedType === opt.value"
|
:aria-pressed="selectedType === opt.value"
|
||||||
@@ -4952,7 +4953,9 @@ function openExternalUrl(url: string) {
|
|||||||
<span class="flex h-10 w-10 items-center justify-center rounded-xl bg-muted/60 transition group-hover:bg-background">
|
<span class="flex h-10 w-10 items-center justify-center rounded-xl bg-muted/60 transition group-hover:bg-background">
|
||||||
<DatabaseIcon :db-type="iconTypeMap[opt.value]" class="h-6 w-6" />
|
<DatabaseIcon :db-type="iconTypeMap[opt.value]" class="h-6 w-6" />
|
||||||
</span>
|
</span>
|
||||||
<span class="max-w-full truncate text-sm font-medium">{{ opt.label }}</span>
|
<span class="flex min-h-8 max-w-full items-center justify-center">
|
||||||
|
<span class="line-clamp-2 text-sm leading-4 font-medium">{{ opt.label }}</span>
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -52,12 +52,12 @@ const SCHEME_PROFILES: Record<string, ConnectionProfile> = {
|
|||||||
chromadb: { type: "chromadb", profile: "chromadb", label: "ChromaDB", defaultPort: 8000 },
|
chromadb: { type: "chromadb", profile: "chromadb", label: "ChromaDB", defaultPort: 8000 },
|
||||||
dm: { type: "dameng", profile: "dm", label: "达梦 Dameng", defaultPort: 5236 },
|
dm: { type: "dameng", profile: "dm", label: "达梦 Dameng", defaultPort: 5236 },
|
||||||
dameng: { type: "dameng", profile: "dm", label: "达梦 Dameng", defaultPort: 5236 },
|
dameng: { type: "dameng", profile: "dm", label: "达梦 Dameng", defaultPort: 5236 },
|
||||||
kingbase: { type: "kingbase", profile: "kingbase", label: "KingBase", defaultPort: 54321 },
|
kingbase: { type: "kingbase", profile: "kingbase", label: "人大金仓 KingbaseES", defaultPort: 54321 },
|
||||||
kingbase8: { type: "kingbase", profile: "kingbase", label: "KingBase", defaultPort: 54321 },
|
kingbase8: { type: "kingbase", profile: "kingbase", label: "人大金仓 KingbaseES", defaultPort: 54321 },
|
||||||
gaussdb: { type: "gaussdb", profile: "gaussdb", label: "GaussDB", defaultPort: 5432 },
|
gaussdb: { type: "gaussdb", profile: "gaussdb", label: "GaussDB", defaultPort: 5432 },
|
||||||
kwdb: { type: "kwdb", profile: "kwdb", label: "KWDB", defaultPort: 26257 },
|
kwdb: { type: "kwdb", profile: "kwdb", label: "KWDB", defaultPort: 26257 },
|
||||||
gbase: { type: "gbase", profile: "gbase", label: "GBase", defaultPort: 5258 },
|
gbase: { type: "gbase", profile: "gbase", label: "南大通用 GBase", defaultPort: 5258 },
|
||||||
"gbasedbt-sqli": { type: "gbase", profile: "gbase8s", label: "GBase 8s", defaultPort: 9088 },
|
"gbasedbt-sqli": { type: "gbase", profile: "gbase8s", label: "南大通用 GBase 8s", defaultPort: 9088 },
|
||||||
"informix-sqli": { type: "informix", profile: "informix", label: "Informix", defaultPort: 9088 },
|
"informix-sqli": { type: "informix", profile: "informix", label: "Informix", defaultPort: 9088 },
|
||||||
yashandb: { type: "yashandb", profile: "yashandb", label: "YashanDB", defaultPort: 1688 },
|
yashandb: { type: "yashandb", profile: "yashandb", label: "YashanDB", defaultPort: 1688 },
|
||||||
opengauss: { type: "gaussdb", profile: "opengauss", label: "openGauss", defaultPort: 5432 },
|
opengauss: { type: "gaussdb", profile: "opengauss", label: "openGauss", defaultPort: 5432 },
|
||||||
@@ -453,7 +453,7 @@ function parseJdbcGbase8sUrl(source: string): ParsedConnectionUrl | null {
|
|||||||
return {
|
return {
|
||||||
dbType: "gbase",
|
dbType: "gbase",
|
||||||
driverProfile: "gbase8s",
|
driverProfile: "gbase8s",
|
||||||
driverLabel: "GBase 8s",
|
driverLabel: "南大通用 GBase 8s",
|
||||||
host,
|
host,
|
||||||
port: match.groups.port ? Number(match.groups.port) : 9088,
|
port: match.groups.port ? Number(match.groups.port) : 9088,
|
||||||
username: decodeUrlPart(rawUser),
|
username: decodeUrlPart(rawUser),
|
||||||
|
|||||||
@@ -989,12 +989,12 @@ export const useConnectionStore = defineStore("connection", () => {
|
|||||||
gaussdb: "GaussDB",
|
gaussdb: "GaussDB",
|
||||||
questdb: "QuestDB",
|
questdb: "QuestDB",
|
||||||
kwdb: "KWDB",
|
kwdb: "KWDB",
|
||||||
kingbase: "KingBase",
|
kingbase: "人大金仓 KingbaseES",
|
||||||
highgo: "瀚高 HighGo",
|
highgo: "瀚高 HighGo",
|
||||||
uxdb: "优炫 UXDB",
|
uxdb: "优炫 UXDB",
|
||||||
yashandb: "崖山 YashanDB",
|
yashandb: "崖山 YashanDB",
|
||||||
vastbase: "Vastbase",
|
vastbase: "海量 Vastbase",
|
||||||
goldendb: "GoldenDB",
|
goldendb: "金篆 GoldenDB",
|
||||||
access: "Microsoft Access",
|
access: "Microsoft Access",
|
||||||
h2: "H2",
|
h2: "H2",
|
||||||
snowflake: "Snowflake",
|
snowflake: "Snowflake",
|
||||||
@@ -1008,7 +1008,7 @@ export const useConnectionStore = defineStore("connection", () => {
|
|||||||
cassandra: "Cassandra",
|
cassandra: "Cassandra",
|
||||||
bigquery: "BigQuery",
|
bigquery: "BigQuery",
|
||||||
kylin: "Kylin",
|
kylin: "Kylin",
|
||||||
sundb: "SunDB",
|
sundb: "科蓝 SUNDB",
|
||||||
oscar: "神通 OSCAR",
|
oscar: "神通 OSCAR",
|
||||||
influxdb: "InfluxDB",
|
influxdb: "InfluxDB",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -767,7 +767,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dbType": "vastbase",
|
"dbType": "vastbase",
|
||||||
"label": "Vastbase",
|
"label": "海量 Vastbase",
|
||||||
"runtimeMode": "agent",
|
"runtimeMode": "agent",
|
||||||
"mcpMode": "bridge",
|
"mcpMode": "bridge",
|
||||||
"agentKey": "vastbase",
|
"agentKey": "vastbase",
|
||||||
@@ -797,7 +797,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dbType": "goldendb",
|
"dbType": "goldendb",
|
||||||
"label": "GoldenDB",
|
"label": "金篆 GoldenDB",
|
||||||
"runtimeMode": "agent",
|
"runtimeMode": "agent",
|
||||||
"mcpMode": "bridge",
|
"mcpMode": "bridge",
|
||||||
"agentKey": "goldendb",
|
"agentKey": "goldendb",
|
||||||
@@ -1213,7 +1213,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dbType": "gbase",
|
"dbType": "gbase",
|
||||||
"label": "GBase 8a",
|
"label": "南大通用 GBase 8a",
|
||||||
"runtimeMode": "agent",
|
"runtimeMode": "agent",
|
||||||
"mcpMode": "bridge",
|
"mcpMode": "bridge",
|
||||||
"agentKey": "gbase8a",
|
"agentKey": "gbase8a",
|
||||||
@@ -1224,12 +1224,12 @@
|
|||||||
"driverProfiles": [
|
"driverProfiles": [
|
||||||
{
|
{
|
||||||
"profile": "gbase8s",
|
"profile": "gbase8s",
|
||||||
"label": "GBase 8s",
|
"label": "南大通用 GBase 8s",
|
||||||
"agentKey": "gbase8s"
|
"agentKey": "gbase8s"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"profile": "gbase8a",
|
"profile": "gbase8a",
|
||||||
"label": "GBase 8a",
|
"label": "南大通用 GBase 8a",
|
||||||
"agentKey": "gbase8a"
|
"agentKey": "gbase8a"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -1612,7 +1612,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dbType": "sundb",
|
"dbType": "sundb",
|
||||||
"label": "SunDB",
|
"label": "科蓝 SUNDB",
|
||||||
"runtimeMode": "agent",
|
"runtimeMode": "agent",
|
||||||
"mcpMode": "bridge",
|
"mcpMode": "bridge",
|
||||||
"agentKey": "sundb",
|
"agentKey": "sundb",
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ const ORACLE_PROFILES: &[AgentDriverProfile] = &[
|
|||||||
];
|
];
|
||||||
|
|
||||||
const GBASE_PROFILES: &[AgentDriverProfile] = &[
|
const GBASE_PROFILES: &[AgentDriverProfile] = &[
|
||||||
AgentDriverProfile { profile: "gbase8s", key: "gbase8s", label: "GBase 8s", store_visible: true },
|
AgentDriverProfile { profile: "gbase8s", key: "gbase8s", label: "南大通用 GBase 8s", store_visible: true },
|
||||||
AgentDriverProfile { profile: "gbase8a", key: "gbase8a", label: "GBase 8a", store_visible: true },
|
AgentDriverProfile { profile: "gbase8a", key: "gbase8a", label: "南大通用 GBase 8a", store_visible: true },
|
||||||
];
|
];
|
||||||
|
|
||||||
const MONGODB_PROFILES: &[AgentDriverProfile] = &[AgentDriverProfile {
|
const MONGODB_PROFILES: &[AgentDriverProfile] = &[AgentDriverProfile {
|
||||||
@@ -86,14 +86,14 @@ const AGENT_CATALOG: &[AgentCatalogEntry] = &[
|
|||||||
AgentCatalogEntry {
|
AgentCatalogEntry {
|
||||||
db_type: DatabaseType::Vastbase,
|
db_type: DatabaseType::Vastbase,
|
||||||
key: "vastbase",
|
key: "vastbase",
|
||||||
label: "Vastbase",
|
label: "海量 Vastbase",
|
||||||
store_visible: true,
|
store_visible: true,
|
||||||
profiles: &[],
|
profiles: &[],
|
||||||
},
|
},
|
||||||
AgentCatalogEntry {
|
AgentCatalogEntry {
|
||||||
db_type: DatabaseType::Goldendb,
|
db_type: DatabaseType::Goldendb,
|
||||||
key: "goldendb",
|
key: "goldendb",
|
||||||
label: "GoldenDB",
|
label: "金篆 GoldenDB",
|
||||||
store_visible: true,
|
store_visible: true,
|
||||||
profiles: &[],
|
profiles: &[],
|
||||||
},
|
},
|
||||||
@@ -156,7 +156,7 @@ const AGENT_CATALOG: &[AgentCatalogEntry] = &[
|
|||||||
AgentCatalogEntry {
|
AgentCatalogEntry {
|
||||||
db_type: DatabaseType::Gbase,
|
db_type: DatabaseType::Gbase,
|
||||||
key: "gbase8a",
|
key: "gbase8a",
|
||||||
label: "GBase 8a",
|
label: "南大通用 GBase 8a",
|
||||||
store_visible: true,
|
store_visible: true,
|
||||||
profiles: GBASE_PROFILES,
|
profiles: GBASE_PROFILES,
|
||||||
},
|
},
|
||||||
@@ -249,7 +249,7 @@ const AGENT_CATALOG: &[AgentCatalogEntry] = &[
|
|||||||
AgentCatalogEntry {
|
AgentCatalogEntry {
|
||||||
db_type: DatabaseType::Sundb,
|
db_type: DatabaseType::Sundb,
|
||||||
key: "sundb",
|
key: "sundb",
|
||||||
label: "SunDB",
|
label: "科蓝 SUNDB",
|
||||||
store_visible: true,
|
store_visible: true,
|
||||||
profiles: &[],
|
profiles: &[],
|
||||||
},
|
},
|
||||||
|
|||||||
+2
-2
@@ -46,7 +46,7 @@ test.each(["kingbase", "kingbase8", "jdbc:kingbase8"])("parses %s connection URL
|
|||||||
assert.deepEqual(parseConnectionUrl(`${scheme}://framework:secret@172.21.203.70:443/hq_official?sslmode=disable`), {
|
assert.deepEqual(parseConnectionUrl(`${scheme}://framework:secret@172.21.203.70:443/hq_official?sslmode=disable`), {
|
||||||
dbType: "kingbase",
|
dbType: "kingbase",
|
||||||
driverProfile: "kingbase",
|
driverProfile: "kingbase",
|
||||||
driverLabel: "KingBase",
|
driverLabel: "人大金仓 KingbaseES",
|
||||||
host: "172.21.203.70",
|
host: "172.21.203.70",
|
||||||
port: 443,
|
port: 443,
|
||||||
username: "framework",
|
username: "framework",
|
||||||
@@ -237,7 +237,7 @@ test("parses GBase 8s JDBC URLs", () => {
|
|||||||
|
|
||||||
assert.equal(parsed.dbType, "gbase");
|
assert.equal(parsed.dbType, "gbase");
|
||||||
assert.equal(parsed.driverProfile, "gbase8s");
|
assert.equal(parsed.driverProfile, "gbase8s");
|
||||||
assert.equal(parsed.driverLabel, "GBase 8s");
|
assert.equal(parsed.driverLabel, "南大通用 GBase 8s");
|
||||||
assert.equal(parsed.host, "gbase.example.com");
|
assert.equal(parsed.host, "gbase.example.com");
|
||||||
assert.equal(parsed.port, 20013);
|
assert.equal(parsed.port, 20013);
|
||||||
assert.equal(parsed.username, "gbasedbt");
|
assert.equal(parsed.username, "gbasedbt");
|
||||||
|
|||||||
Reference in new issue
Block a user