perf(export): stream large SQL INSERT exports in background
This commit is contained in:
1 parent
a77e089848
commit
c8b4224587
14 files changed
+1047
-38
No files matched your search
@@ -84,8 +84,10 @@ function cloneTabDraft<T>(value: T): T {
|
||||
interface BuildQueryResultExportRequestOptions {
|
||||
exportId: string;
|
||||
filePath: string;
|
||||
format: "csv" | "xlsx" | "txt";
|
||||
format: "csv" | "xlsx" | "txt" | "sql";
|
||||
includeSqlSheet?: boolean;
|
||||
exportTableName?: string;
|
||||
exportColumnTypes?: Array<string | null | undefined>;
|
||||
}
|
||||
|
||||
type DroppedTableObjectType = "TABLE" | "VIEW" | "MATERIALIZED_VIEW";
|
||||
@@ -4705,6 +4707,8 @@ export const useQueryStore = defineStore("query", () => {
|
||||
keysetOptimizationEnabled: settings.queryExportKeysetOptimizationEnabled,
|
||||
clientSessionId,
|
||||
executionId: uuid(),
|
||||
exportTableName: options.exportTableName,
|
||||
exportColumnTypes: options.exportColumnTypes,
|
||||
numericColumnRightAlign: settings.numericColumnRightAlign,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user