Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(grid): load full text per page for large table preview

zipg8e57d6f979d9
diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue
index ee5fdcb75b..cbf03da08a 100644
--- a/apps/desktop/src/components/grid/DataGrid.vue
+++ b/apps/desktop/src/components/grid/DataGrid.vue
@@ -459,6 +459,15 @@ const dataGridCrosshairHighlight = computed(() => settingsStore.editorSettings.d
const tableFontSize = computed(() => settingsStore.editorSettings.tableFontSize);
const rowNumberWidth = ref(DATA_GRID_ROW_NUM_WIDTH);
const largeValueResolutionVersion = ref(0);
+// Direct table browsing uses a byte-budgeted preview. Keep that fast path, but
+// let the user explicitly expand the current page (and then bypass the display
+// cache for this table) instead of guessing from a column width (#12289).
+const tableDataFullTextMode = ref(false);
+const tableDataFullTextLoading = ref(false);
+const tableDataPreviewNoticeDismissed = ref(false);
+const tableDataPreviewTruncated = computed(() => !!props.tableMeta && (props.result.large_value_cells?.length ?? 0) > 0);
+const showTableDataPreviewNotice = computed(() => tableDataPreviewTruncated.value && !tableDataFullTextMode.value && !tableDataPreviewNoticeDismissed.value);
+const tableDataFullTextEnabled = computed(() => !!props.tableMeta && tableDataFullTextMode.value);
const multiRowTranspose = computed(() => settingsStore.editorSettings.dataGridMultiRowTranspose);
const hideNullColumns = computed(() => settingsStore.editorSettings.dataGridHideNullColumns);
const hideEmptyColumns = computed(() => settingsStore.editorSettings.dataGridHideEmptyColumns);
@@ -5880,7 +5889,42 @@ const largeValueRuntimeInstance = useDataGridLargeValues({
cloneRows: cloneEditorRows,
});
largeValueRuntime = largeValueRuntimeInstance;
-const { isLargeValuePreview, largeValueOriginalBytes, formatGridItemCell, formatGridItemCellForConfirmation, visibleLargeValuePreviewValue, resolveLargeValueCells, reportLargeValueLoadError, cloneRow, cloneRows } = largeValueRuntimeInstance;
+const { isLargeValuePreview, largeValueOriginalBytes, formatGridItemCell, formatGridItemCellForConfirmation, visibleLargeValuePreviewValue, resolveLargeValueCells, hydrateLargeValueCells, reportLargeValueLoadError, cloneRow, cloneRows } = largeValueRuntimeInstance;
+
+// Pagination/refresh replaces tab.result without remounting the grid, so the
+// page-scoped full-text state must follow the result it was loaded for; the
+// next page starts from the byte-budgeted preview again (#12289).
+watch(
+ () => props.result,
+ () => {
+ tableDataFullTextMode.value = false;
+ tableDataPreviewNoticeDismissed.value = false;
+ },
+);
+
+async function loadCurrentPageFullText() {
+ if (tableDataFullTextLoading.value || !props.tableMeta) return;
+ const sourceResult = props.result;
+ tableDataFullTextLoading.value = true;
+ try {
+ const rowIds = displayItems.value.filter((item) => !item.isDraft).map((item) => item.id);
+ const columnIndexes = sourceResult.columns.map((_, index) => index);
+ const count = await hydrateLargeValueCells(rowIds, columnIndexes);
+ if (props.result !== sourceResult) return;
+ tableDataFullTextMode.value = true;
+ tableDataPreviewNoticeDismissed.value = true;
+ clearCellFormatCache();
+ toast(t("grid.tableDataPreviewLoaded", { count }), 3000);
+ } catch (error: any) {
+ toast(t("grid.tableDataPreviewLoadFailed", { message: translateBackendError(t, error) }), 5000);
+ } finally {
+ tableDataFullTextLoading.value = false;
+ }
+}
+
+function dismissTableDataPreviewNotice() {
+ tableDataPreviewNoticeDismissed.value = true;
+}
const exportContextCell = computed(() => {
if (!contextCell.value) return null;
@@ -7710,7 +7754,7 @@ function formatCell(value: CellValue, columnIndex?: number, originalBytes?: numb
}
if (formatter?.kind === "foreign-key-display" && columnIndex !== undefined) {
const display = formatForeignKeyCellDisplay(value, columnIndex);
- return limitDisplay ? limitDataGridCellDisplay(display, resolvedDatabaseType.value === "sqlserver" ? SQLSERVER_DATA_GRID_CELL_DISPLAY_MAX_LENGTH : undefined) : display;
+ return limitDisplay && !tableDataFullTextEnabled.value ? limitDataGridCellDisplay(display, resolvedDatabaseType.value === "sqlserver" ? SQLSERVER_DATA_GRID_CELL_DISPLAY_MAX_LENGTH : undefined) : display;
}
const columnInfo = columnIndex === undefined ? undefined : tableColumnForGridColumn(columnIndex);
const displayColumnInfo = columnInfo ?? (columnIndex === undefined ? undefined : resultColumnInfoForGridColumn(columnIndex));
@@ -7727,7 +7771,7 @@ function formatCell(value: CellValue, columnIndex?: number, originalBytes?: numb
const booleanDisplay = formatter ? undefined : booleanCellDisplayText(value, booleanCellValueStyle.value);
if (booleanDisplay !== undefined) return booleanDisplay;
const s = applyColumnFormatter(value, formatter);
- return limitDisplay ? limitDataGridCellDisplay(s, resolvedDatabaseType.value === "sqlserver" ? SQLSERVER_DATA_GRID_CELL_DISPLAY_MAX_LENGTH : undefined) : s;
+ return limitDisplay && !tableDataFullTextEnabled.value ? limitDataGridCellDisplay(s, resolvedDatabaseType.value === "sqlserver" ? SQLSERVER_DATA_GRID_CELL_DISPLAY_MAX_LENGTH : undefined) : s;
}
function formatCellCached(value: CellValue, columnIndex?: number, originalBytes?: number): string {
@@ -14582,6 +14626,24 @@ useUpdateBlocker(() => (hasPendingChanges.value || hasPendingDataEditorDraft.val
@copy-sql="copySortSqlPreview"
@apply="applyStructuredSortRules"
/>
+ <!-- Large table preview notice: explicit opt-in instead of guessing from column width (#12289). -->
+ <div v-if="showTableDataPreviewNotice" data-grid-preview-notice class="shrink-0 px-3 py-1.5 bg-amber-500/10 border-b border-amber-500/20 text-xs text-amber-700 dark:text-amber-300 flex flex-wrap items-center gap-x-2 gap-y-1">
+ <Info class="h-3.5 w-3.5 shrink-0" />
+ <span>{{ t("grid.tableDataPreviewNotice") }}</span>
+ <button type="button" class="font-medium underline underline-offset-2 decoration-dotted hover:text-amber-900 disabled:opacity-50 dark:hover:text-amber-100" :disabled="tableDataFullTextLoading" @click="loadCurrentPageFullText">
+ {{ tableDataFullTextLoading ? t("grid.tableDataPreviewLoading") : t("grid.tableDataPreviewLoadPage") }}
+ </button>
+ <button
+ type="button"
+ class="ml-auto shrink-0 rounded p-0.5 text-amber-600/70 hover:bg-amber-500/10 hover:text-amber-800 dark:text-amber-400/70 dark:hover:text-amber-200"
+ :title="t('grid.tableDataPreviewDismiss')"
+ :aria-label="t('grid.tableDataPreviewDismiss')"
+ @click="dismissTableDataPreviewNotice"
+ >
+ <X class="h-3.5 w-3.5" />
+ </button>
+ </div>
+
<!-- Truncation warning banner -->
<div v-if="showTruncationWarning" class="shrink-0 px-3 py-1 bg-amber-500/10 border-b border-amber-500/20 text-xs text-amber-600 dark:text-amber-400 flex items-center gap-1.5">
<span>{{ t(truncationHintKey, { count: result.rows.length }) }}</span>
@@ -14609,7 +14671,6 @@ useUpdateBlocker(() => (hasPendingChanges.value || hasPendingDataEditorDraft.val
:match-count="searchMatchCount"
:current-match-index="currentMatchIndex"
:has-deferred-search-text="!!deferredClientSearchText"
- :values-truncated="(props.result.large_value_cells?.length ?? 0) > 0"
@keydown="onSearchKeydown"
@navigate="navigateMatch"
@replace-current="replaceGridMatches(true)"
diff --git a/apps/desktop/src/components/grid/DataGridSearchBar.vue b/apps/desktop/src/components/grid/DataGridSearchBar.vue
index fb47bd2734..beb0111eeb 100644
--- a/apps/desktop/src/components/grid/DataGridSearchBar.vue
+++ b/apps/desktop/src/components/grid/DataGridSearchBar.vue
@@ -15,8 +15,6 @@ const props = withDefaults(
matchCount: number;
currentMatchIndex: number;
hasDeferredSearchText: boolean;
- /** 结果里含被截断显示的长值(large_value_cells),搜索只覆盖显示文本。 */
- valuesTruncated?: boolean;
replaceAvailable?: boolean;
replaceBusy?: boolean;
replaceMatchCount?: number;
@@ -120,11 +118,6 @@ defineExpose({
<span>{{ suggestion }}</span>
</div>
</div>
- <!-- 截断标记:表格预览对长文本/JSON 值做服务端截断,客户端搜索只能覆盖
- 显示前缀,匹配数可能少于 SQL 查询(#7279)。 -->
- <span v-if="props.valuesTruncated && (props.matchCount > 0 || props.hasDeferredSearchText)" data-grid-search-truncated-hint class="text-xs text-amber-600 dark:text-amber-400 shrink-0 cursor-help" :title="t('grid.searchTruncatedValuesHint')" :aria-label="t('grid.searchTruncatedValuesHint')"
- >≈</span
- >
<span v-if="props.matchCount > 0" class="text-xs text-muted-foreground shrink-0">{{ props.currentMatchIndex + 1 }}/{{ props.matchCount }}</span>
<span v-else-if="props.hasDeferredSearchText" class="text-xs text-muted-foreground shrink-0">0</span>
<button
diff --git a/apps/desktop/src/components/grid/__tests__/DataGridContextExtractor.spec.ts b/apps/desktop/src/components/grid/__tests__/DataGridContextExtractor.spec.ts
index 9379fc5e9a..926d625940 100644
--- a/apps/desktop/src/components/grid/__tests__/DataGridContextExtractor.spec.ts
+++ b/apps/desktop/src/components/grid/__tests__/DataGridContextExtractor.spec.ts
@@ -433,31 +433,28 @@ describe("DataGrid context menu target lifecycle", () => {
expect(contextMenuButton("SQL Select").disabled).toBe(true);
});
- async function openGridSearchAndType(host: HTMLElement, query: string) {
- await settle();
- const gridRoot = host.querySelector<HTMLElement>("[data-grid-root]");
- if (!gridRoot) throw new Error("Grid root not found");
- gridRoot.dispatchEvent(new KeyboardEvent("keydown", { key: "f", ctrlKey: true, bubbles: true, cancelable: true }));
- await settle();
- const input = host.querySelector<HTMLInputElement>("input[type=search]");
- if (!input) throw new Error("Search input not found");
- input.value = query;
- input.dispatchEvent(new Event("input", { bubbles: true }));
- await settle();
- // useDataGridSearch 防抖 150ms,等待 deferredSearchText 生效
- await new Promise((resolve) => setTimeout(resolve, 400));
- }
-
- it("marks the search overlay when truncated large values may hide matches (issue #7279)", async () => {
+ it("shows the large table preview notice when values are truncated", async () => {
const { host } = mountGrid(largeValueResult(1, "preview"));
- await openGridSearchAndType(host, "prev");
- expect(host.querySelector("[data-grid-search-truncated-hint]")).toBeTruthy();
+ await settle();
+ expect(host.querySelector("[data-grid-preview-notice]")).toBeTruthy();
});
- it("does not show the truncation hint for fully loaded values", async () => {
+ it("does not show the large table preview notice for fully loaded values", async () => {
const { host } = mountGrid(hydratedResult(1, "preview"));
- await openGridSearchAndType(host, "prev");
- expect(host.querySelector("[data-grid-search-truncated-hint]")).toBeNull();
+ await settle();
+ expect(host.querySelector("[data-grid-preview-notice]")).toBeNull();
+ });
+
+ it("re-shows the large table preview notice after pagination replaces the result (#12289)", async () => {
+ const { host, replaceResult } = mountGrid(largeValueResult(1, "preview"));
+ await settle();
+ expect(host.querySelector("[data-grid-preview-notice]")).toBeTruthy();
+ host.querySelector<HTMLElement>("[data-grid-preview-notice] button[title]")!.click();
+ await settle();
+ expect(host.querySelector("[data-grid-preview-notice]")).toBeNull();
+ replaceResult(largeValueResult(1, "next-page"));
+ await settle();
+ expect(host.querySelector("[data-grid-preview-notice]")).toBeTruthy();
});
it("offers toolbar-equivalent refresh in the cell context menu (issue #7273)", async () => {
diff --git a/apps/desktop/src/composables/__tests__/useDataGridLargeValues.spec.ts b/apps/desktop/src/composables/__tests__/useDataGridLargeValues.spec.ts
index 644a995ba5..24a0045122 100644
--- a/apps/desktop/src/composables/__tests__/useDataGridLargeValues.spec.ts
+++ b/apps/desktop/src/composables/__tests__/useDataGridLargeValues.spec.ts
@@ -421,6 +421,19 @@ describe("useDataGridLargeValues", () => {
expect(result.value.rows[0]).toEqual([1, "first complete", "second complete"]);
expect(result.value.large_value_cells).toEqual([]);
});
+ it("hydrates every large value cell on the current page in one batch", async () => {
+ const result = previewResult("text", "preview", 9);
+ result.value.large_value_context = { connectionId: "postgres-1", database: "MAXIMO" };
+ result.value.large_value_cells![0]!.value_ref = "page-locator";
+ mocks.readLargeValueChunk.mockResolvedValue({ status: "ok", data: "full text", next_offset: 9, eof: true, value_kind: "text" });
+ const { largeValues } = mountLargeValues("postgres", result);
+
+ await expect(largeValues.hydrateLargeValueCells([1], [0, 1])).resolves.toBe(1);
+
+ expect(result.value.rows[0]).toEqual([1, "full text"]);
+ expect(result.value.large_value_cells).toEqual([]);
+ expect(result.value.large_value_refs).toContain("page-locator");
+ });
it.each([
["postgres", 3],
["mysql", 1],
diff --git a/apps/desktop/src/composables/useDataGridLargeValues.ts b/apps/desktop/src/composables/useDataGridLargeValues.ts
index 48dd537990..d625c197ca 100644
--- a/apps/desktop/src/composables/useDataGridLargeValues.ts
+++ b/apps/desktop/src/composables/useDataGridLargeValues.ts
@@ -614,6 +614,48 @@ export function useDataGridLargeValues(options: UseDataGridLargeValuesOptions) {
return resolved;
}
+ /**
+ * Resolve every truncated cell the caller can currently see in one batch and
+ * write the full values back into the result. Used by the table-preview
+ * "load current page" action; the result-level display cache still applies to
+ * cells the user has not chosen to expand.
+ */
+ async function hydrateLargeValueCells(rowIds: number[], columnIndexes: number[]): Promise<number> {
+ const sourceResult = options.result.value;
+ const resolved = await resolveLargeValueCells(rowIds, columnIndexes);
+ // Same staleness guard as the single-cell path: paginating or refreshing
+ // mid-load replaces tab.result, and the row metadata below belongs to the
+ // result the batch was resolved for.
+ if (options.result.value !== sourceResult) return 0;
+ let changed = 0;
+ for (const [rowId, values] of resolved) {
+ const item = options.getRowItem(rowId);
+ if (item?.sourceIndex === undefined) continue;
+ for (const [columnIndex, value] of values) {
+ sourceResult.rows[item.sourceIndex]![columnIndex] = value;
+ const hydrationKey = largeValueCellKey(item.sourceIndex, columnIndex);
+ const metadata = largeValueCellsByKey.value.get(hydrationKey);
+ if (metadata?.value_ref && typeof value === "string") {
+ // Keep the shared 64 MiB view/edit budget aware of batch-hydrated
+ // cells so later single-cell loads and save baselines stay bounded.
+ const sizes = materializedSnapshotBytes.get(sourceResult) ?? new Map<string, number>();
+ sizes.set(hydrationKey, new TextEncoder().encode(value).length);
+ materializedSnapshotBytes.set(sourceResult, sizes);
+ }
+ if (metadata?.value_ref) sourceResult.large_value_refs = [...new Set([...(sourceResult.large_value_refs ?? []), metadata.value_ref])];
+ sourceResult.large_value_cells = sourceResult.large_value_cells?.filter((cell) => cell.row_index !== item.sourceIndex || cell.column_index !== columnIndex);
+ visibleLargeValuePreviewCaches.get(sourceResult)?.forget(item.sourceIndex, columnIndex);
+ changed += 1;
+ }
+ }
+ if (changed > 0) {
+ options.largeValueResolutionVersion.value += 1;
+ options.clearCellFormatCache();
+ options.invalidateResultEstimate(sourceResult);
+ }
+ return changed;
+ }
+
function reportLargeValueLoadError(error: unknown) {
options.toast(options.translate("grid.largeValueLoadFailedWithMessage", { message: options.translateBackendError(error) }), 5000);
}
@@ -740,6 +782,7 @@ export function useDataGridLargeValues(options: UseDataGridLargeValuesOptions) {
formatGridItemCellForConfirmation,
visibleLargeValuePreviewValue,
resolveLargeValueCells,
+ hydrateLargeValueCells,
hydrateLargeValueCell,
prepareSaveBaseline,
invalidateVisibleLargeValuePreviewCell,
diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.ts
index 16c468cb10..9c269338c3 100644
--- a/apps/desktop/src/i18n/locales/en.ts
+++ b/apps/desktop/src/i18n/locales/en.ts
@@ -3235,6 +3235,12 @@ export default {
detailSearchNoMatch: "No matches",
rawValue: "Raw Value",
largeValuePreviewHint: "Previewing first {count} characters. Copy still uses the full value.",
+ tableDataPreviewNotice: "This table is large, so only part of the long text was loaded to open it faster.",
+ tableDataPreviewLoadPage: "Load full text for this page",
+ tableDataPreviewLoading: "Loading full text for this page…",
+ tableDataPreviewDismiss: "Don't show again",
+ tableDataPreviewLoaded: "Loaded full text for {count} cells on this page",
+ tableDataPreviewLoadFailed: "Failed to load full text: {message}",
largeValueRowUnavailable: "The row could not be located in the database. The operation was canceled without using the preview value.",
largeValueColumnUnavailable: "The source column for this large value could not be located.",
largeValueLoadFailed: "Failed to load the full large-field value.",
diff --git a/apps/desktop/src/i18n/locales/es.ts b/apps/desktop/src/i18n/locales/es.ts
index c8201f17a7..e2a2ef49e7 100644
--- a/apps/desktop/src/i18n/locales/es.ts
+++ b/apps/desktop/src/i18n/locales/es.ts
@@ -3196,6 +3196,12 @@ export default withEnglishFallback({
cut: "Cortado",
uncommittedBlankRow: "Fila nueva sin completar, se ignorará al guardar.",
copyExtractorSqlDeletesInserts: "Sentencias SQL DELETEs/INSERTs",
+ tableDataPreviewNotice: "Los datos actuales de la tabla son grandes, por lo que, para garantizar la velocidad de apertura, solo se cargan parte de los textos largos.",
+ tableDataPreviewLoadPage: "Cargar el texto completo de la página actual",
+ tableDataPreviewLoading: "Cargando el texto completo de la página actual…",
+ tableDataPreviewDismiss: "No volver a mostrar",
+ tableDataPreviewLoaded: "Se cargaron {count} celdas con texto completo de la página actual",
+ tableDataPreviewLoadFailed: "Error al cargar el texto completo: {message}",
},
exportProgress: {
streamingUnsupported: "La exportación en streaming no es compatible con esta consulta. Simplifíquela o use un controlador compatible.",
diff --git a/apps/desktop/src/i18n/locales/it.ts b/apps/desktop/src/i18n/locales/it.ts
index c53c5b0304..c5f02850cd 100644
--- a/apps/desktop/src/i18n/locales/it.ts
+++ b/apps/desktop/src/i18n/locales/it.ts
@@ -3069,6 +3069,12 @@ export default withEnglishFallback({
cut: "Tagliato",
uncommittedBlankRow: "Nuova riga non compilata, verrà ignorata al salvataggio",
copyExtractorSqlDeletesInserts: "Istruzioni SQL DELETEs/INSERTs",
+ tableDataPreviewNotice: "La tabella corrente contiene molti dati; per garantire una rapida apertura è stata caricata solo una parte dei testi lunghi.",
+ tableDataPreviewLoadPage: "Carica il testo completo della pagina corrente",
+ tableDataPreviewLoading: "Caricamento del testo completo della pagina corrente…",
+ tableDataPreviewDismiss: "Non mostrare più",
+ tableDataPreviewLoaded: "Caricate {count} celle con testo completo nella pagina corrente",
+ tableDataPreviewLoadFailed: "Impossibile caricare il testo completo: {message}",
},
exportProgress: {
streamingUnsupported: "L'esportazione in streaming non è supportata per questa query. Semplificala o usa un driver supportato.",
diff --git a/apps/desktop/src/i18n/locales/ja.ts b/apps/desktop/src/i18n/locales/ja.ts
index eb396b8ec7..9f92b4debf 100644
--- a/apps/desktop/src/i18n/locales/ja.ts
+++ b/apps/desktop/src/i18n/locales/ja.ts
@@ -3093,6 +3093,12 @@ export default withEnglishFallback({
cut: "切り取りました",
uncommittedBlankRow: "未入力の新しい行は、保存時に無視されます",
copyExtractorSqlDeletesInserts: "SQL DELETEs/INSERTs ステートメント",
+ tableDataPreviewNotice: "現在のテーブルデータが大きいため、開く速度を確保するために長いテキストの一部のみを読み込みました。",
+ tableDataPreviewLoadPage: "現在のページの完全なテキストを読み込む",
+ tableDataPreviewLoading: "現在のページの完全なテキストを読み込み中…",
+ tableDataPreviewDismiss: "今後表示しない",
+ tableDataPreviewLoaded: "現在のページの完全なテキストセルを {count} 個読み込みました",
+ tableDataPreviewLoadFailed: "完全なテキストの読み込みに失敗しました:{message}",
},
exportProgress: {
streamingUnsupported: "このクエリはストリーミングエクスポートに対応していません。クエリを簡略化するか、対応しているドライバーを使用してください。",
diff --git a/apps/desktop/src/i18n/locales/ko.ts b/apps/desktop/src/i18n/locales/ko.ts
index 0d82a27886..ddfba90624 100644
--- a/apps/desktop/src/i18n/locales/ko.ts
+++ b/apps/desktop/src/i18n/locales/ko.ts
@@ -3019,6 +3019,12 @@ export default withEnglishFallback({
batchAppendPasteNoMatchingColumns: "INSERT 문의 열 이름이 현재 결과 집합의 어떤 열과도 일치하지 않습니다.",
uncommittedBlankRow: "입력되지 않은 새 행은 저장 시 무시됩니다.",
copyExtractorSqlDeletesInserts: "SQL DELETEs/INSERTs 문",
+ tableDataPreviewNotice: "현재 테이블 데이터가 많아 열기 속도를 보장하기 위해 일부 긴 텍스트만 불러왔습니다.",
+ tableDataPreviewLoadPage: "현재 페이지의 전체 텍스트 불러오기",
+ tableDataPreviewLoading: "현재 페이지의 전체 텍스트를 불러오는 중…",
+ tableDataPreviewDismiss: "다시 표시하지 않음",
+ tableDataPreviewLoaded: "현재 페이지의 전체 텍스트 셀 {count}개를 불러왔습니다",
+ tableDataPreviewLoadFailed: "전체 텍스트를 불러오지 못했습니다: {message}",
},
exportProgress: {
streamingUnsupported: "이 쿼리는 스트리밍 내보내기를 지원하지 않습니다. 쿼리를 단순화하거나 지원되는 드라이버를 사용하세요.",
diff --git a/apps/desktop/src/i18n/locales/pt-BR.ts b/apps/desktop/src/i18n/locales/pt-BR.ts
index 15818de04e..8071487994 100644
--- a/apps/desktop/src/i18n/locales/pt-BR.ts
+++ b/apps/desktop/src/i18n/locales/pt-BR.ts
@@ -3069,6 +3069,12 @@ export default withEnglishFallback({
cut: "Recortado",
uncommittedBlankRow: "Nova linha não preenchida, será ignorada ao salvar",
copyExtractorSqlDeletesInserts: "Instruções SQL DELETEs/INSERTs",
+ tableDataPreviewNotice: "Os dados da tabela atual são grandes; para garantir a velocidade de abertura, apenas parte dos textos longos foi carregada.",
+ tableDataPreviewLoadPage: "Carregar o texto completo da página atual",
+ tableDataPreviewLoading: "Carregando o texto completo da página atual…",
+ tableDataPreviewDismiss: "Não mostrar novamente",
+ tableDataPreviewLoaded: "Carregadas {count} células de texto completo na página atual",
+ tableDataPreviewLoadFailed: "Falha ao carregar o texto completo: {message}",
},
exportProgress: {
streamingUnsupported: "A exportação em streaming não é compatível com esta consulta. Simplifique-a ou use um driver compatível.",
diff --git a/apps/desktop/src/i18n/locales/ru.ts b/apps/desktop/src/i18n/locales/ru.ts
index 359d63d3e6..b046d13910 100644
--- a/apps/desktop/src/i18n/locales/ru.ts
+++ b/apps/desktop/src/i18n/locales/ru.ts
@@ -3153,6 +3153,12 @@ export default withEnglishFallback({
uncommittedBlankRow: "Незаполненная новая строка будет проигнорирована при сохранении",
copyExtractorSqlDeletesInserts: "SQL-операторы DELETEs/INSERTs",
columnInfo: "Информация о столбце",
+ tableDataPreviewNotice: "Текущая таблица содержит большой объём данных, поэтому для скорости открытия загружены только некоторые длинные тексты.",
+ tableDataPreviewLoadPage: "Загрузить полный текст текущей страницы",
+ tableDataPreviewLoading: "Загрузка полного текста текущей страницы…",
+ tableDataPreviewDismiss: "Больше не показывать",
+ tableDataPreviewLoaded: "Загружено {count} ячеек с полным текстом на текущей странице",
+ tableDataPreviewLoadFailed: "Не удалось загрузить полный текст: {message}",
},
exportProgress: {
streamingUnsupported: "Потоковый экспорт не поддерживается для этого запроса. Упростите его или используйте поддерживаемый драйвер.",
diff --git a/apps/desktop/src/i18n/locales/th.ts b/apps/desktop/src/i18n/locales/th.ts
index cd30030e84..0dfc98adac 100644
--- a/apps/desktop/src/i18n/locales/th.ts
+++ b/apps/desktop/src/i18n/locales/th.ts
@@ -3377,6 +3377,12 @@ export default withEnglishFallback({
uncommittedBlankRow: "แถวใหม่ที่ยังไม่ได้กรอกจะถูกละเว้นเมื่อบันทึก",
copyExtractorSqlDeletesInserts: "คำสั่ง SQL DELETEs/INSERTs",
columnInfo: "ข้อมูลคอลัมน์",
+ tableDataPreviewNotice: "ข้อมูลในตารางปัจจุบันมีขนาดใหญ่ เพื่อให้เปิดได้เร็ว จึงโหลดข้อความแบบยาวเพียงบางส่วนเท่านั้น",
+ tableDataPreviewLoadPage: "โหลดข้อความฉบับเต็มของหน้าปัจจุบัน",
+ tableDataPreviewLoading: "กำลังโหลดข้อความฉบับเต็มของหน้าปัจจุบัน…",
+ tableDataPreviewDismiss: "ไม่แสดงอีก",
+ tableDataPreviewLoaded: "โหลดเซลล์ข้อความฉบับเต็มในหน้าปัจจุบันแล้ว {count} เซลล์",
+ tableDataPreviewLoadFailed: "โหลดข้อความฉบับเต็มไม่สำเร็จ: {message}",
},
exportProgress: {
streamingUnsupported: "ไม่รองรับการส่งออกแบบ Streaming สำหรับ Query นี้ ทำให้เรียบง่ายขึ้นหรือใช้ Driver ที่รองรับ",
diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.ts
index 772c6ae19f..9b64efd7ac 100644
--- a/apps/desktop/src/i18n/locales/zh-CN.ts
+++ b/apps/desktop/src/i18n/locales/zh-CN.ts
@@ -3169,6 +3169,12 @@ export default withEnglishFallback({
detailSearchNoMatch: "无匹配项",
rawValue: "原始值",
largeValuePreviewHint: "仅预览前 {count} 个字符,复制仍会使用完整值。",
+ tableDataPreviewNotice: "当前表数据较大,为保证打开速度只加载了部分长文本。",
+ tableDataPreviewLoadPage: "加载当前页完整文本",
+ tableDataPreviewLoading: "正在加载当前页完整文本…",
+ tableDataPreviewDismiss: "不再提示",
+ tableDataPreviewLoaded: "已加载当前页 {count} 个完整文本单元格",
+ tableDataPreviewLoadFailed: "加载完整文本失败:{message}",
largeValueRowUnavailable: "无法在数据库中定位该行,操作已取消,未使用预览值。",
largeValueColumnUnavailable: "无法定位大字段对应的源列。",
largeValueLoadFailed: "读取大字段完整值失败。",
diff --git a/apps/desktop/src/i18n/locales/zh-TW.ts b/apps/desktop/src/i18n/locales/zh-TW.ts
index 5853eb7a98..eb6e67f185 100644
--- a/apps/desktop/src/i18n/locales/zh-TW.ts
+++ b/apps/desktop/src/i18n/locales/zh-TW.ts
@@ -3072,6 +3072,12 @@ export default withEnglishFallback({
filterModeOrderMoveDown: "下移運算子",
filterModeOrderReset: "恢復預設順序",
uncommittedBlankRow: "未填寫的新行,儲存時會被忽略",
+ tableDataPreviewNotice: "目前資料表資料量較大,為確保開啟速度,僅載入部分長文字。",
+ tableDataPreviewLoadPage: "載入目前頁面的完整文字",
+ tableDataPreviewLoading: "正在載入目前頁面的完整文字…",
+ tableDataPreviewDismiss: "不再提示",
+ tableDataPreviewLoaded: "已載入目前頁面 {count} 個完整文字儲存格",
+ tableDataPreviewLoadFailed: "載入完整文字失敗:{message}",
},
exportProgress: {
streamingUnsupported: "目前查詢暫不支援串流匯出,請簡化查詢或使用支援的驅動程式。",