feat(databend): support agent driver
This commit is contained in:
1 parent
3403819658
commit
74e19ec6a3
18 files changed
+127
-14
No files matched your search
@@ -332,6 +332,7 @@ const driverProfiles: Record<
|
||||
icon: "oceanbase",
|
||||
},
|
||||
goldendb: { type: "goldendb", port: 3306, user: "root", label: "GoldenDB", icon: "goldendb" },
|
||||
databend: { type: "databend", port: 8000, user: "databend", label: "Databend", icon: "databend" },
|
||||
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" },
|
||||
@@ -600,6 +601,7 @@ function defaultDatabaseForProfile() {
|
||||
if (form.value.db_type === "redshift") return "dev";
|
||||
if (form.value.db_type === "gaussdb") return "postgres";
|
||||
if (form.value.db_type === "kwdb") return "defaultdb";
|
||||
if (form.value.db_type === "databend") return "default";
|
||||
if (selectedType.value === "cockroachdb") return "defaultdb";
|
||||
if (form.value.db_type === "highgo") return "highgo";
|
||||
if (form.value.db_type === "yashandb") return "yasdb";
|
||||
@@ -636,6 +638,7 @@ const iconTypeMap: Record<string, string> = {
|
||||
oceanbase: "oceanbase",
|
||||
"oceanbase-oracle": "oceanbase",
|
||||
goldendb: "goldendb",
|
||||
databend: "databend",
|
||||
tdsql: "tdsql",
|
||||
polardb: "polardb",
|
||||
greatsql: "greatsql",
|
||||
@@ -699,6 +702,7 @@ const dbOptions = [
|
||||
{ value: "tidb", label: "TiDB" },
|
||||
{ value: "oceanbase", label: "OceanBase" },
|
||||
{ value: "goldendb", label: "GoldenDB" },
|
||||
{ value: "databend", label: "Databend" },
|
||||
{ value: "tdsql", label: "TDSQL" },
|
||||
{ value: "polardb", label: "PolarDB" },
|
||||
{ value: "greatsql", label: "GreatSQL" },
|
||||
|
||||
@@ -33,6 +33,7 @@ const assetIcons: Record<string, string> = {
|
||||
kingbase: "kingbase",
|
||||
highgo: "highgo.png",
|
||||
goldendb: "goldendb.png",
|
||||
databend: "databend",
|
||||
vastbase: "vastbase.png",
|
||||
yashandb: "yashandb.png",
|
||||
snowflake: "snowflake",
|
||||
|
||||
@@ -117,6 +117,7 @@ import { buildRoutineRenameObjectSourceStatements, supportsSourceBackedRoutineRe
|
||||
import { buildViewDdl } from "@/lib/viewDdl";
|
||||
import { getTableStructureCapabilities } from "@/lib/tableStructureCapabilities";
|
||||
import {
|
||||
connectionObjectTreeNodeSchema,
|
||||
connectionObjectTreeQuerySchema,
|
||||
connectionUsesDatabaseObjectTreeMode,
|
||||
effectiveDatabaseTypeForConnection,
|
||||
@@ -753,7 +754,7 @@ async function openData() {
|
||||
table: node.label,
|
||||
dbType: config?.db_type,
|
||||
});
|
||||
const tableSchema = connectionUsesDatabaseObjectTreeMode(config) ? undefined : node.schema;
|
||||
const tableSchema = connectionObjectTreeNodeSchema(config, node.database, node.schema);
|
||||
const tabId = (() => {
|
||||
if (settingsStore.editorSettings.reuseDataTab) {
|
||||
const existing = queryStore.tabs.find(
|
||||
|
||||
Reference in new issue
Block a user