feat(export): include query SQL in XLSX

This commit is contained in:
zipg authored and GitHub committed 2026-07-14 10:45:21 +08:00
1 parent 65ea4f855f
commit 73f11f4265
23 files changed
+486 -91

No files matched your search

+2
View File
@@ -72,6 +72,7 @@ interface BuildQueryResultExportRequestOptions {
exportId: string;
filePath: string;
format: "csv" | "xlsx" | "txt";
includeSqlSheet?: boolean;
}
type DroppedTableObjectType = "TABLE" | "VIEW" | "MATERIALIZED_VIEW";
@@ -3844,6 +3845,7 @@ export const useQueryStore = defineStore("query", () => {
useAgentCursor,
filePath: options.filePath,
format: options.format,
includeSqlSheet: options.format === "xlsx" && options.includeSqlSheet === true,
pageSize: settings.exportBatchSize,
rowLimit,
totalRows,