1 parent
add378d643
commit
9c23e3198b
19 files changed
+488
-41
No files matched your search
@@ -67,6 +67,7 @@ interface ColumnarQueryResult {
|
||||
rowCount: number;
|
||||
mongo_documents?: unknown[];
|
||||
mongo_copy_documents?: unknown[];
|
||||
redis_console_output?: string;
|
||||
affected_rows: number;
|
||||
execution_time_ms: number;
|
||||
server_execute_time_us?: number;
|
||||
@@ -361,6 +362,7 @@ function stripSessionIds(result: QueryResult | undefined): QueryResult | undefin
|
||||
rows: result.rows.map((row) => [...row]),
|
||||
mongo_documents: result.mongo_documents ? clonePlain(result.mongo_documents) : undefined,
|
||||
mongo_copy_documents: result.mongo_copy_documents ? clonePlain(result.mongo_copy_documents) : undefined,
|
||||
redis_console_output: result.redis_console_output,
|
||||
affected_rows: result.affected_rows,
|
||||
execution_time_ms: result.execution_time_ms,
|
||||
server_execute_time_us: result.server_execute_time_us,
|
||||
@@ -424,6 +426,7 @@ function toColumnarResult(result: QueryResult | undefined): ColumnarQueryResult
|
||||
rowCount,
|
||||
mongo_documents: result.mongo_documents ? clonePlain(result.mongo_documents) : undefined,
|
||||
mongo_copy_documents: result.mongo_copy_documents ? clonePlain(result.mongo_copy_documents) : undefined,
|
||||
redis_console_output: result.redis_console_output,
|
||||
affected_rows: result.affected_rows,
|
||||
execution_time_ms: result.execution_time_ms,
|
||||
server_execute_time_us: result.server_execute_time_us,
|
||||
@@ -459,6 +462,7 @@ function fromColumnarResult(result: ColumnarQueryResult | undefined): QueryResul
|
||||
rows,
|
||||
mongo_documents: result.mongo_documents ? clonePlain(result.mongo_documents) : undefined,
|
||||
mongo_copy_documents: result.mongo_copy_documents ? clonePlain(result.mongo_copy_documents) : undefined,
|
||||
redis_console_output: result.redis_console_output,
|
||||
affected_rows: result.affected_rows,
|
||||
execution_time_ms: result.execution_time_ms,
|
||||
server_execute_time_us: result.server_execute_time_us,
|
||||
|
||||
@@ -105,6 +105,7 @@ export function sanitizeTabUiState(value: unknown): TabUiState | undefined {
|
||||
const state = value as TabUiState;
|
||||
const normalized: TabUiState = {};
|
||||
if (state.activeOutputView && ["result", "summary", "explain", "chart", "messages", "profile"].includes(state.activeOutputView)) normalized.activeOutputView = state.activeOutputView;
|
||||
if (state.redisResultViewMode === "grid" || state.redisResultViewMode === "console") normalized.redisResultViewMode = state.redisResultViewMode;
|
||||
if (typeof state.resultPaneOpen === "boolean") normalized.resultPaneOpen = state.resultPaneOpen;
|
||||
const sanitizedPage = sanitizeTabPageUiState(state.page);
|
||||
if (sanitizedPage) {
|
||||
|
||||
Reference in new issue
Block a user