fdb2 1.0.40 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/public/.vite/manifest.json +109 -1
- package/dist/public/database-monitor.css +445 -0
- package/dist/public/database-monitor.js +605 -0
- package/dist/public/database.css +740 -0
- package/dist/public/database.js +555 -0
- package/dist/public/database2.js +344 -0
- package/dist/public/echarts.js +79307 -0
- package/dist/public/explorer.css +979 -329
- package/dist/public/explorer.js +3563 -34962
- package/dist/public/export.js +54831 -0
- package/dist/public/helpers.js +27 -0
- package/dist/public/index.js +303 -35
- package/dist/public/layout.css +98 -65
- package/dist/public/layout.js +58 -21
- package/dist/public/query-history.css +651 -0
- package/dist/public/query-history.js +526 -0
- package/dist/public/sql-query-editor.css +503 -0
- package/dist/public/sql-query-editor.js +638 -0
- package/dist/public/theme.js +82 -0
- package/dist/server/__tests__/import-normalize.test.ts +79 -0
- package/dist/server/__tests__/remote-proxy.test.ts +62 -0
- package/dist/server/core/schema/__tests__/ddl-emitter.test.ts +152 -0
- package/dist/server/core/schema/canonical.d.ts.map +1 -1
- package/dist/server/core/schema/canonical.js +4 -1
- package/dist/server/core/schema/canonical.js.map +1 -1
- package/dist/server/core/schema/canonical.ts +4 -1
- package/dist/server/core/schema/ddl-emitter.d.ts +3 -0
- package/dist/server/core/schema/ddl-emitter.d.ts.map +1 -1
- package/dist/server/core/schema/ddl-emitter.js +126 -12
- package/dist/server/core/schema/ddl-emitter.js.map +1 -1
- package/dist/server/core/schema/ddl-emitter.ts +137 -11
- package/dist/server/index.d.ts +20 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +292 -19
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.ts +305 -21
- package/dist/server/service/database/cockroachdb.service.js +1 -1
- package/dist/server/service/database/cockroachdb.service.ts +1 -1
- package/dist/server/service/database/database.service.d.ts +22 -6
- package/dist/server/service/database/database.service.d.ts.map +1 -1
- package/dist/server/service/database/database.service.js +257 -54
- package/dist/server/service/database/database.service.js.map +1 -1
- package/dist/server/service/database/database.service.ts +265 -64
- package/dist/server/service/database/mongodb.service.d.ts +1 -1
- package/dist/server/service/database/mongodb.service.d.ts.map +1 -1
- package/dist/server/service/database/mongodb.service.js +18 -5
- package/dist/server/service/database/mongodb.service.js.map +1 -1
- package/dist/server/service/database/mongodb.service.ts +18 -5
- package/dist/server/service/database/mssql.service.js +4 -4
- package/dist/server/service/database/mssql.service.js.map +1 -1
- package/dist/server/service/database/mssql.service.ts +4 -4
- package/dist/server/service/database/oracle.service.d.ts +5 -1
- package/dist/server/service/database/oracle.service.d.ts.map +1 -1
- package/dist/server/service/database/oracle.service.js +23 -34
- package/dist/server/service/database/oracle.service.js.map +1 -1
- package/dist/server/service/database/oracle.service.ts +24 -44
- package/dist/server/service/database/sap.service.d.ts +8 -0
- package/dist/server/service/database/sap.service.d.ts.map +1 -1
- package/dist/server/service/database/sap.service.js +28 -0
- package/dist/server/service/database/sap.service.js.map +1 -1
- package/dist/server/service/database/sap.service.ts +29 -0
- package/dist/server/service/database/sqlite.service.d.ts.map +1 -1
- package/dist/server/service/database/sqlite.service.js +5 -2
- package/dist/server/service/database/sqlite.service.js.map +1 -1
- package/dist/server/service/database/sqlite.service.ts +5 -2
- package/package.json +1 -1
- package/public/fdb2.png +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { n as __esmMin } from "./rolldown-runtime.js";
|
|
2
|
+
//#region src/platform/database/utils/helpers.ts
|
|
3
|
+
async function copyToClipboard(text) {
|
|
4
|
+
try {
|
|
5
|
+
await navigator.clipboard.writeText(text);
|
|
6
|
+
return true;
|
|
7
|
+
} catch (error) {
|
|
8
|
+
const textArea = document.createElement("textarea");
|
|
9
|
+
textArea.value = text;
|
|
10
|
+
textArea.style.position = "fixed";
|
|
11
|
+
textArea.style.opacity = "0";
|
|
12
|
+
document.body.appendChild(textArea);
|
|
13
|
+
textArea.focus();
|
|
14
|
+
textArea.select();
|
|
15
|
+
try {
|
|
16
|
+
document.execCommand("copy");
|
|
17
|
+
document.body.removeChild(textArea);
|
|
18
|
+
return true;
|
|
19
|
+
} catch (error) {
|
|
20
|
+
document.body.removeChild(textArea);
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
var init_helpers = __esmMin((() => {}));
|
|
26
|
+
//#endregion
|
|
27
|
+
export { init_helpers as n, copyToClipboard as t };
|
package/dist/public/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./layout.js","./rolldown-runtime.js","./vue.js","./layout.css","./explorer.js","./explorer.css","./vconsole.min.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./layout.js","./rolldown-runtime.js","./vue.js","./layout.css","./explorer.js","./database.js","./theme.js","./helpers.js","./export.js","./explorer.css","./database2.js","./database.css","./sql-query-editor.js","./sql-query-editor.css","./query-history.js","./query-history.css","./database-monitor.js","./echarts.js","./database-monitor.css","./vconsole.min.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { a as __toESM, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
3
3
|
import { $ as markRaw, A as defineComponent, B as renderList, C as createBlock, F as nextTick, G as watch, H as resolveComponent, I as onBeforeUnmount, J as effectScope, L as onMounted, M as hasInjectionContext, O as createTextVNode, P as inject, Q as isRef, R as onUnmounted, S as createBaseVNode, T as createElementBlock, U as resolveDynamicComponent, V as renderSlot, W as useSlots, Y as getCurrentScope, Z as isReactive, a as init_vue_router, at as unref, b as Fragment, c as createI18n, ct as normalizeStyle, d as init_vue_runtime_esm_bundler, et as onScopeDispose, i as createWebHistory, it as toRefs, j as getCurrentInstance, k as createVNode, l as init_vue_i18n, lt as toDisplayString, n as useTitle, nt as ref, p as createApp, r as createRouter, rt as toRaw, st as normalizeClass, t as init_core, tt as reactive, u as useI18n, w as createCommentVNode, x as computed, y as withModifiers, z as openBlock } from "./vue.js";
|
|
4
4
|
import { i as init_bootstrap, n as init_bootstrap_esm, r as init_bootstrap_icons, t as Modal } from "./bootstrap.js";
|
|
@@ -4550,9 +4550,9 @@ var init_bridge = __esmMin((() => {
|
|
|
4550
4550
|
* webview 内 CSP 已限定脚本来源、宿主是唯一消息来源,该过滤没有实际收益。
|
|
4551
4551
|
*/
|
|
4552
4552
|
onMessage(callback) {
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4553
|
+
const handler = (event) => callback(event.data);
|
|
4554
|
+
window.addEventListener("message", handler);
|
|
4555
|
+
return () => window.removeEventListener("message", handler);
|
|
4556
4556
|
}
|
|
4557
4557
|
/**
|
|
4558
4558
|
* 获取状态
|
|
@@ -4572,14 +4572,8 @@ var init_bridge = __esmMin((() => {
|
|
|
4572
4572
|
* 初始化桥接
|
|
4573
4573
|
*/
|
|
4574
4574
|
init(messageHandler) {
|
|
4575
|
-
if (this.isVSCodeEnvironment())
|
|
4576
|
-
|
|
4577
|
-
const savedState = this.getState();
|
|
4578
|
-
if (savedState) this.postMessage({
|
|
4579
|
-
command: "restoreState",
|
|
4580
|
-
data: savedState
|
|
4581
|
-
});
|
|
4582
|
-
}
|
|
4575
|
+
if (!this.isVSCodeEnvironment()) return () => void 0;
|
|
4576
|
+
return messageHandler ? this.onMessage(messageHandler) : () => void 0;
|
|
4583
4577
|
}
|
|
4584
4578
|
};
|
|
4585
4579
|
bridgeInstance = null;
|
|
@@ -4611,12 +4605,14 @@ function installListener() {
|
|
|
4611
4605
|
function vscodeApiRequest(path, data) {
|
|
4612
4606
|
installListener();
|
|
4613
4607
|
const id = ++seq;
|
|
4614
|
-
return new Promise((resolve
|
|
4608
|
+
return new Promise((resolve) => {
|
|
4615
4609
|
pending.set(id, {
|
|
4616
4610
|
resolve,
|
|
4617
|
-
reject: (e) => {
|
|
4618
|
-
|
|
4619
|
-
|
|
4611
|
+
reject: (e) => resolve({
|
|
4612
|
+
ret: 500,
|
|
4613
|
+
msg: e?.message || String(e),
|
|
4614
|
+
data: void 0
|
|
4615
|
+
})
|
|
4620
4616
|
});
|
|
4621
4617
|
const plain = data != null ? JSON.parse(JSON.stringify(data)) : {};
|
|
4622
4618
|
getVSCodeBridge().postMessage({
|
|
@@ -5289,9 +5285,13 @@ var init_zh_CN = __esmMin((() => {
|
|
|
5289
5285
|
tableCreateFailed: "创建表失败",
|
|
5290
5286
|
tableModifyFailed: "表结构修改失败",
|
|
5291
5287
|
getTableInfoFailed: "获取表结构失败",
|
|
5288
|
+
viewFunctionDefinition: "查看定义",
|
|
5289
|
+
noFunction: "暂无函数",
|
|
5290
|
+
viewFunctionDefinitionTitle: "查看定义 - {name}",
|
|
5292
5291
|
size: "大小"
|
|
5293
5292
|
},
|
|
5294
5293
|
tableDetail: {
|
|
5294
|
+
indexes: "索引",
|
|
5295
5295
|
rowData: "行数据",
|
|
5296
5296
|
refreshData: "刷新数据",
|
|
5297
5297
|
backToConnection: "返回连接概览",
|
|
@@ -5481,6 +5481,8 @@ var init_zh_CN = __esmMin((() => {
|
|
|
5481
5481
|
},
|
|
5482
5482
|
importExport: {
|
|
5483
5483
|
title: "数据导入导出",
|
|
5484
|
+
database: "数据库",
|
|
5485
|
+
selectDatabase: "请选择数据库",
|
|
5484
5486
|
unknownError: "未知错误",
|
|
5485
5487
|
dataImport: "数据导入",
|
|
5486
5488
|
dataExport: "数据导出",
|
|
@@ -5554,6 +5556,17 @@ var init_zh_CN = __esmMin((() => {
|
|
|
5554
5556
|
exportPreview: "导出预览",
|
|
5555
5557
|
totalRecordsCount: "共 {count} 条记录",
|
|
5556
5558
|
databaseConnection: "数据库连接",
|
|
5559
|
+
keyColumn: "键列(用于更新)",
|
|
5560
|
+
selectKeyColumn: "请选择键列",
|
|
5561
|
+
selectKeyColumnFirst: "请先在步骤 2 选择用于更新匹配的键列",
|
|
5562
|
+
confirmReplace: "替换模式将先清空表「{table}」的全部数据,此操作不可恢复。确定继续导入吗?",
|
|
5563
|
+
skipEmptyKey: "第 {n} 行: 键列「{column}」为空,已跳过",
|
|
5564
|
+
rowError: "第 {n} 行: {msg}",
|
|
5565
|
+
updateFailed: "更新失败",
|
|
5566
|
+
rowRangeError: "第 {start}-{end} 行: {msg}",
|
|
5567
|
+
selectConnectionDatabaseTable: "请选择连接、数据库和表",
|
|
5568
|
+
exportRowsSuccess: "已导出 {n} 行数据",
|
|
5569
|
+
exportFailed: "导出失败: {msg}",
|
|
5557
5570
|
targetTable: "目标表"
|
|
5558
5571
|
},
|
|
5559
5572
|
queryHistory: {
|
|
@@ -5651,6 +5664,18 @@ var init_zh_CN = __esmMin((() => {
|
|
|
5651
5664
|
yAxisConnectionCount: "连接数",
|
|
5652
5665
|
hourLabel: "{n}时",
|
|
5653
5666
|
seriesResponseTime: "响应时间",
|
|
5667
|
+
noMetricData: "后端未提供该指标",
|
|
5668
|
+
tableCountByDatabase: "各数据库表数量",
|
|
5669
|
+
procedureCountByDatabase: "各数据库存储过程数量",
|
|
5670
|
+
slowQueryUnavailable: "后端未提供慢查询采集接口,暂无可展示记录",
|
|
5671
|
+
resourcesUnavailable: "后端未提供 CPU、内存、磁盘 IO 和网络指标,暂无可展示数据",
|
|
5672
|
+
storageNoStats: "暂无统计接口数据",
|
|
5673
|
+
storageSource: "来自 {n} 个数据库的统计接口",
|
|
5674
|
+
chartNoData: "暂无数据库统计",
|
|
5675
|
+
tableCount: "表数量",
|
|
5676
|
+
tableCountTooltip: "表数量: {n}",
|
|
5677
|
+
procedureCount: "存储过程数量",
|
|
5678
|
+
procedureCountTooltip: "存储过程数量: {n}",
|
|
5654
5679
|
seriesConnectionCount: "连接数"
|
|
5655
5680
|
},
|
|
5656
5681
|
dbTools: {
|
|
@@ -5734,6 +5759,55 @@ var init_zh_CN = __esmMin((() => {
|
|
|
5734
5759
|
healthCheckDiskSpace: "磁盘空间",
|
|
5735
5760
|
unknownError: "未知错误",
|
|
5736
5761
|
toolTitle: "工具",
|
|
5762
|
+
restoreClientNotice: "当前实现(客户端 SQL 文件恢复):浏览器读取 .sql 文件文本,按分号拆分后逐条调用 executeQuery 执行;不会把文件名当作服务器路径。",
|
|
5763
|
+
restoreClientLimit: "限制:不解析存储过程/触发器内部的分号与 DELIMITER,非 .sql 备份格式不支持;\"删除现有表\"选项在客户端恢复中不生效。",
|
|
5764
|
+
importSqlFileTitle: "导入 SQL 文件",
|
|
5765
|
+
importSqlFileHint: "浏览器读取 .sql 文件文本,按分号拆分后逐条调用 executeQuery 执行,并在执行结果区报告每条语句的成功/失败。",
|
|
5766
|
+
importSqlFileLimit: "限制:DDL 批次按语句逐条发送(无事务包裹),不解析存储过程/触发器内的分号与 DELIMITER。",
|
|
5767
|
+
importAndExecute: "导入并执行",
|
|
5768
|
+
createUserHint: "支持 MySQL / PostgreSQL / MSSQL / Oracle;其他方言会明确拒绝。点击创建后会弹出 DCL 二次确认。",
|
|
5769
|
+
hostMySQLHint: "主机(仅 MySQL,默认 %)",
|
|
5770
|
+
roleOptional: "角色(可选)",
|
|
5771
|
+
rolePlaceholder: "例如 MySQL: readonly / PostgreSQL: readonly",
|
|
5772
|
+
createWithConfirm: "创建(需确认)",
|
|
5773
|
+
scheduledBackupServerTitle: "定时备份(服务端)",
|
|
5774
|
+
scheduleHint: "计划保存在服务端数据目录,由服务端进程每分钟检查执行;仅在服务端运行时生效。",
|
|
5775
|
+
intervalMinutes: "间隔(分钟)",
|
|
5776
|
+
saveCurrentSchedule: "保存当前连接的计划",
|
|
5777
|
+
scheduleConnectionDatabase: "连接 / 数据库",
|
|
5778
|
+
scheduleInterval: "间隔",
|
|
5779
|
+
scheduleLastRun: "上次执行",
|
|
5780
|
+
minutes: "{n} 分钟",
|
|
5781
|
+
scheduleEnabled: "已启用",
|
|
5782
|
+
scheduleDisabled: "已停用",
|
|
5783
|
+
runNow: "立即执行",
|
|
5784
|
+
enable: "启用",
|
|
5785
|
+
disable: "停用",
|
|
5786
|
+
noSchedule: "暂无备份计划",
|
|
5787
|
+
unsupportedDialect: "{operation}不支持当前数据库类型:{type}(仅支持 MySQL/PostgreSQL/MSSQL/Oracle)",
|
|
5788
|
+
fillUsernamePassword: "请填写用户名和密码",
|
|
5789
|
+
confirmCreateUser: "即将执行以下 DCL 语句(不可自动回滚),请确认:\n{sql}",
|
|
5790
|
+
confirmCreateUserTitle: "确认创建用户(DCL)",
|
|
5791
|
+
createUserResult: "创建用户语句执行完成:成功 {success} 条,失败 {failed} 条。",
|
|
5792
|
+
userCreated: "用户创建成功",
|
|
5793
|
+
mysqlOnly: "{operation} 仅支持 MySQL,当前连接:{type}",
|
|
5794
|
+
exportStructureFailed: "导出结构失败",
|
|
5795
|
+
noSchemaText: "后端未返回可保存的结构文本",
|
|
5796
|
+
saveCancelled: "用户取消保存",
|
|
5797
|
+
exportStructureSuccess: "结构导出成功:{path}",
|
|
5798
|
+
exportStructureSuccessToast: "结构导出成功",
|
|
5799
|
+
noSqlStatements: "未从文件中解析出可执行的 SQL 语句",
|
|
5800
|
+
ddlBatchHint: "DDL 批次按语句逐条发送(无事务包裹、不解析存储过程/触发器内的分号与 DELIMITER)",
|
|
5801
|
+
readSqlFileFailed: "读取 SQL 文件失败",
|
|
5802
|
+
tableCollectionCount: "{n} 张表/集合",
|
|
5803
|
+
indexCount: "{n} 个索引",
|
|
5804
|
+
restoreClientResult: "客户端 SQL 文件恢复完成:成功 {success} 条,失败 {failed} 条。按分号朴素拆分(不解析存储过程/触发器中的分号与 DELIMITER),\"删除现有表\"选项未应用。",
|
|
5805
|
+
loadSchedulesFailed: "读取备份计划失败: {msg}",
|
|
5806
|
+
scheduleSaved: "已保存服务端备份计划:每 {n} 分钟一次,{status}。",
|
|
5807
|
+
saveScheduleFailed: "保存备份计划失败: {msg}",
|
|
5808
|
+
updateScheduleFailed: "更新备份计划失败: {msg}",
|
|
5809
|
+
confirmDeleteSchedule: "确定删除备份计划「{name}」吗?",
|
|
5810
|
+
deleteScheduleFailed: "删除备份计划失败: {msg}",
|
|
5737
5811
|
dataSyncTitle: "数据同步"
|
|
5738
5812
|
},
|
|
5739
5813
|
aboutPage: {
|
|
@@ -5828,6 +5902,41 @@ var init_zh_CN = __esmMin((() => {
|
|
|
5828
5902
|
available: "发现新版本 v{version},点击下载更新。",
|
|
5829
5903
|
downloadNow: "下载",
|
|
5830
5904
|
later: "稍后"
|
|
5905
|
+
},
|
|
5906
|
+
sqlQueryEditor: {
|
|
5907
|
+
defaultDatabase: "默认数据库",
|
|
5908
|
+
savedQueries: "已保存查询",
|
|
5909
|
+
unnamedQuery: "未命名查询"
|
|
5910
|
+
},
|
|
5911
|
+
vscodeQuery: {
|
|
5912
|
+
historyCount: "历史 ({n})",
|
|
5913
|
+
exportFormatLabel: "结果导出格式",
|
|
5914
|
+
exportResult: "导出结果",
|
|
5915
|
+
queryHistory: "查询历史",
|
|
5916
|
+
clearHistory: "清空历史",
|
|
5917
|
+
noHistory: "暂无历史记录",
|
|
5918
|
+
queryError: "查询错误: {msg}",
|
|
5919
|
+
noExportResult: "没有可导出的查询结果",
|
|
5920
|
+
confirmClearHistory: "确定清空全部查询历史吗?"
|
|
5921
|
+
},
|
|
5922
|
+
vscodeTableData: {
|
|
5923
|
+
insertRow: "新增行",
|
|
5924
|
+
editSelectedRow: "编辑选中行",
|
|
5925
|
+
deleteSelectedRow: "删除选中行",
|
|
5926
|
+
selectRowFirst: "请先选中一行数据",
|
|
5927
|
+
confirmDeleteRow: "确定删除选中的行吗?此操作不可恢复。",
|
|
5928
|
+
noDeleteCondition: "无法确定删除条件:表中没有可用列",
|
|
5929
|
+
rowDeleted: "行已删除",
|
|
5930
|
+
confirmDrop: "确定删除表「{table}」吗?表结构与数据将一并删除且不可恢复。",
|
|
5931
|
+
tableDropped: "表已删除",
|
|
5932
|
+
exportedTo: "已导出到 {path}"
|
|
5933
|
+
},
|
|
5934
|
+
vscodeTableStructure: {
|
|
5935
|
+
editStructure: "编辑表结构",
|
|
5936
|
+
createIndex: "新建索引",
|
|
5937
|
+
uniqueIndex: "唯一索引",
|
|
5938
|
+
operationSuccess: "操作成功",
|
|
5939
|
+
operationFailed: "操作失败"
|
|
5831
5940
|
}
|
|
5832
5941
|
};
|
|
5833
5942
|
}));
|
|
@@ -6104,6 +6213,7 @@ var init_en_US = __esmMin((() => {
|
|
|
6104
6213
|
},
|
|
6105
6214
|
databaseDetail: {
|
|
6106
6215
|
tables: "Tables",
|
|
6216
|
+
backToConnection: "Back to connection",
|
|
6107
6217
|
collections: "Collections",
|
|
6108
6218
|
views: "Views",
|
|
6109
6219
|
procedures: "Procedures",
|
|
@@ -6155,9 +6265,15 @@ var init_en_US = __esmMin((() => {
|
|
|
6155
6265
|
tableCreateFailed: "Failed to create table",
|
|
6156
6266
|
tableModifyFailed: "Failed to modify table structure",
|
|
6157
6267
|
getTableInfoFailed: "Failed to get table structure",
|
|
6268
|
+
viewFunctionDefinition: "View Definition",
|
|
6269
|
+
noFunction: "No functions yet",
|
|
6270
|
+
viewFunctionDefinitionTitle: "View Definition - {name}",
|
|
6158
6271
|
size: "Size"
|
|
6159
6272
|
},
|
|
6160
6273
|
tableDetail: {
|
|
6274
|
+
backToConnection: "Back to connection",
|
|
6275
|
+
backToDatabase: "Back to database",
|
|
6276
|
+
indexes: "Indexes",
|
|
6161
6277
|
rowData: "Row Data",
|
|
6162
6278
|
refreshData: "Refresh Data",
|
|
6163
6279
|
modifyStructure: "Modify Structure",
|
|
@@ -6345,6 +6461,8 @@ var init_en_US = __esmMin((() => {
|
|
|
6345
6461
|
},
|
|
6346
6462
|
importExport: {
|
|
6347
6463
|
title: "Data Import/Export",
|
|
6464
|
+
database: "Database",
|
|
6465
|
+
selectDatabase: "Select database",
|
|
6348
6466
|
unknownError: "Unknown error",
|
|
6349
6467
|
dataImport: "Data Import",
|
|
6350
6468
|
dataExport: "Data Export",
|
|
@@ -6418,6 +6536,17 @@ var init_en_US = __esmMin((() => {
|
|
|
6418
6536
|
exportPreview: "Export Preview",
|
|
6419
6537
|
totalRecordsCount: "{count} records total",
|
|
6420
6538
|
databaseConnection: "Database Connection",
|
|
6539
|
+
keyColumn: "Key column (for update)",
|
|
6540
|
+
selectKeyColumn: "Select key column",
|
|
6541
|
+
selectKeyColumnFirst: "Please select the key column for update matching in step 2 first",
|
|
6542
|
+
confirmReplace: "Replace mode will clear all data in table \"{table}\". This action cannot be undone. Continue importing?",
|
|
6543
|
+
skipEmptyKey: "Row {n}: key column \"{column}\" is empty, skipped",
|
|
6544
|
+
rowError: "Row {n}: {msg}",
|
|
6545
|
+
updateFailed: "Update failed",
|
|
6546
|
+
rowRangeError: "Rows {start}-{end}: {msg}",
|
|
6547
|
+
selectConnectionDatabaseTable: "Please select a connection, database and table",
|
|
6548
|
+
exportRowsSuccess: "Exported {n} rows",
|
|
6549
|
+
exportFailed: "Export failed: {msg}",
|
|
6421
6550
|
targetTable: "Target Table"
|
|
6422
6551
|
},
|
|
6423
6552
|
queryHistory: {
|
|
@@ -6515,6 +6644,18 @@ var init_en_US = __esmMin((() => {
|
|
|
6515
6644
|
yAxisConnectionCount: "Connections",
|
|
6516
6645
|
hourLabel: "{n}:00",
|
|
6517
6646
|
seriesResponseTime: "Response Time",
|
|
6647
|
+
noMetricData: "Metric not provided by backend",
|
|
6648
|
+
tableCountByDatabase: "Table count by database",
|
|
6649
|
+
procedureCountByDatabase: "Stored procedure count by database",
|
|
6650
|
+
slowQueryUnavailable: "Slow query collection is not provided by the backend; no records to display",
|
|
6651
|
+
resourcesUnavailable: "CPU, memory, disk I/O and network metrics are not provided by the backend; no data to display",
|
|
6652
|
+
storageNoStats: "No statistics data available",
|
|
6653
|
+
storageSource: "From statistics of {n} databases",
|
|
6654
|
+
chartNoData: "No database statistics",
|
|
6655
|
+
tableCount: "Table count",
|
|
6656
|
+
tableCountTooltip: "Table count: {n}",
|
|
6657
|
+
procedureCount: "Stored procedure count",
|
|
6658
|
+
procedureCountTooltip: "Stored procedure count: {n}",
|
|
6518
6659
|
seriesConnectionCount: "Connections"
|
|
6519
6660
|
},
|
|
6520
6661
|
dbTools: {
|
|
@@ -6598,6 +6739,55 @@ var init_en_US = __esmMin((() => {
|
|
|
6598
6739
|
healthCheckDiskSpace: "Disk Space",
|
|
6599
6740
|
unknownError: "Unknown error",
|
|
6600
6741
|
toolTitle: "Tool",
|
|
6742
|
+
restoreClientNotice: "Client-side SQL file restore: the browser reads the .sql file text, splits it by semicolons and executes each statement via executeQuery; the file name is never treated as a server path.",
|
|
6743
|
+
restoreClientLimit: "Limitations: semicolons and DELIMITER inside stored procedures/triggers are not parsed, non-.sql backup formats are unsupported, and the \"drop existing tables\" option has no effect in client-side restore.",
|
|
6744
|
+
importSqlFileTitle: "Import SQL File",
|
|
6745
|
+
importSqlFileHint: "The browser reads the .sql file text, splits it by semicolons, executes each statement via executeQuery, and reports success or failure for each statement in the results area.",
|
|
6746
|
+
importSqlFileLimit: "Limitations: DDL batches are sent statement by statement (no transaction wrapper); semicolons and DELIMITER inside stored procedures/triggers are not parsed.",
|
|
6747
|
+
importAndExecute: "Import and Execute",
|
|
6748
|
+
createUserHint: "Supports MySQL / PostgreSQL / MSSQL / Oracle; other dialects are explicitly rejected. A DCL confirmation dialog appears after clicking Create.",
|
|
6749
|
+
hostMySQLHint: "Host (MySQL only, defaults to %)",
|
|
6750
|
+
roleOptional: "Role (optional)",
|
|
6751
|
+
rolePlaceholder: "e.g. MySQL: readonly / PostgreSQL: readonly",
|
|
6752
|
+
createWithConfirm: "Create (requires confirmation)",
|
|
6753
|
+
scheduledBackupServerTitle: "Scheduled Backup (Server)",
|
|
6754
|
+
scheduleHint: "Schedules are stored in the server data directory and checked every minute by the server process; they only take effect while the server is running.",
|
|
6755
|
+
intervalMinutes: "Interval (minutes)",
|
|
6756
|
+
saveCurrentSchedule: "Save schedule for current connection",
|
|
6757
|
+
scheduleConnectionDatabase: "Connection / Database",
|
|
6758
|
+
scheduleInterval: "Interval",
|
|
6759
|
+
scheduleLastRun: "Last run",
|
|
6760
|
+
minutes: "{n} min",
|
|
6761
|
+
scheduleEnabled: "Enabled",
|
|
6762
|
+
scheduleDisabled: "Disabled",
|
|
6763
|
+
runNow: "Run now",
|
|
6764
|
+
enable: "Enable",
|
|
6765
|
+
disable: "Disable",
|
|
6766
|
+
noSchedule: "No backup schedules",
|
|
6767
|
+
unsupportedDialect: "{operation} is not supported for the current database type: {type} (only MySQL/PostgreSQL/MSSQL/Oracle are supported)",
|
|
6768
|
+
fillUsernamePassword: "Please enter a username and password",
|
|
6769
|
+
confirmCreateUser: "The following DCL statements will be executed (no automatic rollback). Please confirm:\n{sql}",
|
|
6770
|
+
confirmCreateUserTitle: "Confirm Create User (DCL)",
|
|
6771
|
+
createUserResult: "Create-user statements finished: {success} succeeded, {failed} failed.",
|
|
6772
|
+
userCreated: "User created successfully",
|
|
6773
|
+
mysqlOnly: "{operation} is only supported for MySQL; current connection: {type}",
|
|
6774
|
+
exportStructureFailed: "Failed to export structure",
|
|
6775
|
+
noSchemaText: "The backend returned no structure text that can be saved",
|
|
6776
|
+
saveCancelled: "Save cancelled by user",
|
|
6777
|
+
exportStructureSuccess: "Structure exported successfully: {path}",
|
|
6778
|
+
exportStructureSuccessToast: "Structure exported successfully",
|
|
6779
|
+
noSqlStatements: "No executable SQL statements were parsed from the file",
|
|
6780
|
+
ddlBatchHint: "DDL batches are sent statement by statement (no transaction wrapper; semicolons and DELIMITER inside stored procedures/triggers are not parsed)",
|
|
6781
|
+
readSqlFileFailed: "Failed to read SQL file",
|
|
6782
|
+
tableCollectionCount: "{n} tables/collections",
|
|
6783
|
+
indexCount: "{n} indexes",
|
|
6784
|
+
restoreClientResult: "Client-side SQL file restore finished: {success} succeeded, {failed} failed. Statements were split naively by semicolons (semicolons and DELIMITER inside stored procedures/triggers are not parsed), and the \"drop existing tables\" option was not applied.",
|
|
6785
|
+
loadSchedulesFailed: "Failed to load backup schedules: {msg}",
|
|
6786
|
+
scheduleSaved: "Server backup schedule saved: once every {n} minutes, {status}.",
|
|
6787
|
+
saveScheduleFailed: "Failed to save backup schedule: {msg}",
|
|
6788
|
+
updateScheduleFailed: "Failed to update backup schedule: {msg}",
|
|
6789
|
+
confirmDeleteSchedule: "Are you sure you want to delete the backup schedule \"{name}\"?",
|
|
6790
|
+
deleteScheduleFailed: "Failed to delete backup schedule: {msg}",
|
|
6601
6791
|
dataSyncTitle: "Data Sync"
|
|
6602
6792
|
},
|
|
6603
6793
|
aboutPage: {
|
|
@@ -6692,6 +6882,41 @@ var init_en_US = __esmMin((() => {
|
|
|
6692
6882
|
available: "New version v{version} is available.",
|
|
6693
6883
|
downloadNow: "Download",
|
|
6694
6884
|
later: "Later"
|
|
6885
|
+
},
|
|
6886
|
+
sqlQueryEditor: {
|
|
6887
|
+
defaultDatabase: "Default database",
|
|
6888
|
+
savedQueries: "Saved queries",
|
|
6889
|
+
unnamedQuery: "Unnamed query"
|
|
6890
|
+
},
|
|
6891
|
+
vscodeQuery: {
|
|
6892
|
+
historyCount: "History ({n})",
|
|
6893
|
+
exportFormatLabel: "Result export format",
|
|
6894
|
+
exportResult: "Export result",
|
|
6895
|
+
queryHistory: "Query History",
|
|
6896
|
+
clearHistory: "Clear history",
|
|
6897
|
+
noHistory: "No history records",
|
|
6898
|
+
queryError: "Query error: {msg}",
|
|
6899
|
+
noExportResult: "No query results to export",
|
|
6900
|
+
confirmClearHistory: "Are you sure you want to clear all query history?"
|
|
6901
|
+
},
|
|
6902
|
+
vscodeTableData: {
|
|
6903
|
+
insertRow: "Insert row",
|
|
6904
|
+
editSelectedRow: "Edit selected row",
|
|
6905
|
+
deleteSelectedRow: "Delete selected row",
|
|
6906
|
+
selectRowFirst: "Please select a row first",
|
|
6907
|
+
confirmDeleteRow: "Are you sure you want to delete the selected row? This action cannot be undone.",
|
|
6908
|
+
noDeleteCondition: "Cannot determine a delete condition: the table has no usable columns",
|
|
6909
|
+
rowDeleted: "Row deleted",
|
|
6910
|
+
confirmDrop: "Are you sure you want to drop table \"{table}\"? Its structure and data will be deleted and cannot be undone.",
|
|
6911
|
+
tableDropped: "Table dropped",
|
|
6912
|
+
exportedTo: "Exported to {path}"
|
|
6913
|
+
},
|
|
6914
|
+
vscodeTableStructure: {
|
|
6915
|
+
editStructure: "Edit table structure",
|
|
6916
|
+
createIndex: "Create Index",
|
|
6917
|
+
uniqueIndex: "Unique index",
|
|
6918
|
+
operationSuccess: "Operation succeeded",
|
|
6919
|
+
operationFailed: "Operation failed"
|
|
6695
6920
|
}
|
|
6696
6921
|
};
|
|
6697
6922
|
}));
|
|
@@ -6807,25 +7032,68 @@ var init_router$1 = __esmMin((() => {
|
|
|
6807
7032
|
icon: "bi-database",
|
|
6808
7033
|
needAuth: false
|
|
6809
7034
|
},
|
|
6810
|
-
children: [
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
7035
|
+
children: [
|
|
7036
|
+
{
|
|
7037
|
+
path: "index",
|
|
7038
|
+
name: "database-index",
|
|
7039
|
+
component: () => __vitePreload(() => import("./explorer.js"), __vite__mapDeps([4,1,2,5,6,7,8,9]), import.meta.url),
|
|
7040
|
+
meta: {
|
|
7041
|
+
titleKey: "nav.databaseHome",
|
|
7042
|
+
icon: "bi-house",
|
|
7043
|
+
needAuth: false
|
|
7044
|
+
}
|
|
7045
|
+
},
|
|
7046
|
+
{
|
|
7047
|
+
path: "explorer",
|
|
7048
|
+
name: "database-explorer",
|
|
7049
|
+
component: () => __vitePreload(() => import("./explorer.js"), __vite__mapDeps([4,1,2,5,6,7,8,9]), import.meta.url),
|
|
7050
|
+
meta: {
|
|
7051
|
+
titleKey: "nav.databaseExplorer",
|
|
7052
|
+
icon: "bi-diagram-3",
|
|
7053
|
+
needAuth: false
|
|
7054
|
+
}
|
|
7055
|
+
},
|
|
7056
|
+
{
|
|
7057
|
+
path: "dashboard",
|
|
7058
|
+
name: "database-dashboard",
|
|
7059
|
+
component: () => __vitePreload(() => import("./database2.js"), __vite__mapDeps([10,1,2,5,11]), import.meta.url),
|
|
7060
|
+
meta: {
|
|
7061
|
+
titleKey: "nav.databaseHome",
|
|
7062
|
+
icon: "bi-house",
|
|
7063
|
+
needAuth: false
|
|
7064
|
+
}
|
|
7065
|
+
},
|
|
7066
|
+
{
|
|
7067
|
+
path: "sql-query",
|
|
7068
|
+
name: "database-sql-query",
|
|
7069
|
+
component: () => __vitePreload(() => import("./sql-query-editor.js"), __vite__mapDeps([12,1,2,5,8,13]), import.meta.url),
|
|
7070
|
+
meta: {
|
|
7071
|
+
titleKey: "nav.sqlQuery",
|
|
7072
|
+
icon: "bi-terminal",
|
|
7073
|
+
needAuth: false
|
|
7074
|
+
}
|
|
7075
|
+
},
|
|
7076
|
+
{
|
|
7077
|
+
path: "query-history",
|
|
7078
|
+
name: "database-query-history",
|
|
7079
|
+
component: () => __vitePreload(() => import("./query-history.js"), __vite__mapDeps([14,1,2,7,15]), import.meta.url),
|
|
7080
|
+
meta: {
|
|
7081
|
+
titleKey: "queryHistory.title",
|
|
7082
|
+
icon: "bi-clock-history",
|
|
7083
|
+
needAuth: false
|
|
7084
|
+
}
|
|
7085
|
+
},
|
|
7086
|
+
{
|
|
7087
|
+
path: "monitor",
|
|
7088
|
+
name: "database-monitor",
|
|
7089
|
+
component: () => __vitePreload(() => import("./database-monitor.js"), __vite__mapDeps([16,1,2,5,17,6,18]), import.meta.url),
|
|
7090
|
+
meta: {
|
|
7091
|
+
titleKey: "monitor.title",
|
|
7092
|
+
icon: "bi-activity",
|
|
7093
|
+
needAuth: false
|
|
7094
|
+
}
|
|
6827
7095
|
}
|
|
6828
|
-
|
|
7096
|
+
]
|
|
6829
7097
|
}];
|
|
6830
7098
|
}));
|
|
6831
7099
|
//#endregion
|
|
@@ -8032,7 +8300,7 @@ var init_modal = __esmMin((() => {
|
|
|
8032
8300
|
init_preload_helper();
|
|
8033
8301
|
if (window.__INITIAL_STATE__?.dev) __vitePreload(() => import("./vconsole.min.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((VConsole) => {
|
|
8034
8302
|
new VConsole.default();
|
|
8035
|
-
}), __vite__mapDeps([
|
|
8303
|
+
}), __vite__mapDeps([19,1]), import.meta.url);
|
|
8036
8304
|
if (typeof document !== "undefined") {
|
|
8037
8305
|
document.body.classList.add("platform-desktop");
|
|
8038
8306
|
document.documentElement.setAttribute("data-bs-theme", "dark");
|