feat: import table data from files

This commit is contained in:
SuLea-IT
2026-05-02 19:04:41 +08:00
parent 608a02a0bb
commit 2ebd72b3b7
15 changed files with 1448 additions and 9 deletions
+18
View File
@@ -226,6 +226,7 @@ export default {
exportDatabase: "Export Database",
exportDatabaseSuccess: "Exported {count} tables, up to {limit} rows each",
exportDatabaseFailed: "Failed to export database: {message}",
importData: "Import Data",
exportData: "Export Data",
exportStructure: "Export Structure",
},
@@ -349,6 +350,23 @@ export default {
overallProgress: "Overall progress",
dataTransfer: "Data Transfer",
},
tableImport: {
title: "Import Table Data",
target: "Target table",
selectFile: "Select File",
file: "File",
rows: "Rows",
mapped: "Mapped",
mapping: "Column Mapping",
skipColumn: "Skip",
preview: "Preview",
mode: "Import mode",
append: "Append data",
truncate: "Truncate then import",
progress: "Progress",
start: "Start Import",
success: "Imported {count} rows",
},
sqlFile: {
title: "Execute SQL File",
file: "File",
+18
View File
@@ -226,6 +226,7 @@ export default {
exportDatabase: "导出数据库",
exportDatabaseSuccess: "已导出 {count} 张表,每表最多 {limit} 行",
exportDatabaseFailed: "导出数据库失败:{message}",
importData: "导入数据",
exportData: "导出数据",
exportStructure: "导出表结构",
},
@@ -349,6 +350,23 @@ export default {
overallProgress: "整体进度",
dataTransfer: "数据传输",
},
tableImport: {
title: "导入表数据",
target: "目标表",
selectFile: "选择文件",
file: "文件",
rows: "行数",
mapped: "已映射",
mapping: "字段映射",
skipColumn: "跳过",
preview: "预览",
mode: "导入模式",
append: "追加数据",
truncate: "清空后导入",
progress: "进度",
start: "开始导入",
success: "已导入 {count} 行",
},
sqlFile: {
title: "执行 SQL 文件",
file: "文件",