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(structure): copy fields across connections and databases

二丫讲梵e91b460ce93c
diff --git a/apps/desktop/src/components/structure/TableStructureEditor.vue b/apps/desktop/src/components/structure/TableStructureEditor.vue
index 895610dc56..2ed176ea94 100644
--- a/apps/desktop/src/components/structure/TableStructureEditor.vue
+++ b/apps/desktop/src/components/structure/TableStructureEditor.vue
@@ -72,6 +72,9 @@ import { useTheme } from "@/composables/useTheme";
import { editorFontTheme, loadEditorTheme } from "@/lib/editor/editorThemes";
import { createDbxCodeMirrorSqlDialect } from "@/lib/editor/codemirrorSqlDialect";
import { useToast } from "@/composables/useToast";
+import { fetchNamespaceOptionsForConnection, fetchCatalogNamespaceOptions, namespaceOptionsAreSchemas, normalizedQueryTabCatalog, selectedQueryCatalogName } from "@/composables/useDatabaseOptions";
+import { schemaOptionsForConnection } from "@/composables/useSchemaOptions";
+import { connectionIsDorisFamilyCatalogCapable, isSchemaAware } from "@/lib/database/databaseFeatureSupport";
import { useVerticalOverlayScrollbar } from "@/composables/useVerticalOverlayScrollbar";
import { type SqlHighlighter, createShikiSqlHighlighter } from "@/lib/sql/sqlHighlighter";
import { joinSqlStatementsForScript } from "@/lib/sql/sqlBatchScript";
@@ -116,9 +119,9 @@ import { canAddTableStructureColumn, getTableStructureCapabilities, hasLocalTabl
import { getConcurrentIndexAvailability, concurrentIndexNamesInStatements, normalizeUnsupportedConcurrentIndexes, type ConcurrentIndexAvailability } from "@/lib/table/concurrentIndexAvailability";
import { orderedColumnIndexes, uniqueDataGridColumnOrderKeys } from "@/lib/dataGrid/dataGridColumnOrder";
import { loadTableDataGridColumnOrder, notifyTableDataGridColumnOrderChanged, removeTableDataGridColumnOrder, saveTableDataGridColumnOrder, tableDataGridColumnOrderScopeKey } from "@/lib/dataGrid/dataGridColumnLayoutStorage";
-import { codeMirrorSqlDialectForConnection, connectionObjectTreeQuerySchema, tableStructureDatabaseTypeForConnection } from "@/lib/database/jdbcDialect";
+import { codeMirrorSqlDialectForConnection, connectionObjectTreeQuerySchema, connectionUsesDatabaseObjectTreeMode, tableStructureDatabaseTypeForConnection } from "@/lib/database/jdbcDialect";
import { postgresListRolesSql, usersFromPostgresRolesResult } from "@/lib/database/databaseUserAdmin";
-import type { ColumnInfo, ConstraintInfo, PgPartitionKind, PgPartitionNode, PgTablePartitioning, TableInfo, TableInfoTab, TableStructureEditorDraft, TableStructureEditorTarget, TableStructureEditorViewport } from "@/types/database";
+import type { CatalogInfo, ColumnInfo, ConnectionConfig, ConstraintInfo, PgPartitionKind, PgPartitionNode, PgTablePartitioning, TableInfo, TableInfoTab, TableStructureEditorDraft, TableStructureEditorTarget, TableStructureEditorViewport } from "@/types/database";
import {
applyManticoreDdlColumnExtras,
buildStructureTargetLabel,
@@ -550,6 +553,16 @@ async function authorizeStarRocksLayoutCopy(sql: string): Promise<boolean> {
return !productionContext.active || (await productionSafetyStore.requestConfirmation({ sql, connectionName: config?.name, database: props.database, productionDatabases: productionContext.databases, source: t("starrocksLayout.copyTitle") }));
}
const copyColumnsDialogOpen = ref(false);
+const copySourceConnectionId = ref("");
+const copySourceDatabase = ref("");
+const copySourceSchema = ref("");
+const copySourceCatalog = ref("");
+const copySourceDatabases = ref<string[]>([]);
+const copySourceSchemas = ref<string[]>([]);
+const copySourceCatalogs = ref<CatalogInfo[]>([]);
+const copySourceScopeLoading = ref(false);
+const copySourceScopeReady = ref(false);
+let copySourceScopeRequestId = 0;
const copySourceTables = ref<TableInfo[]>([]);
const copySourceTableName = ref("");
const copySourceTableSearch = ref("");
@@ -3623,6 +3636,97 @@ function onColumnRowActivate(column: EditableStructureColumn) {
selectSingleColumn(column);
}
+const copySourceConnection = computed(() => store.getConfig(copySourceConnectionId.value));
+function isCompatibleCopyConnection(config: ConnectionConfig): boolean {
+ const sourceType = tableStructureDatabaseTypeForConnection(config);
+ // Unknown JDBC dialects cannot be assumed compatible across connections.
+ return config.id === props.connectionId || (!!sourceType && sourceType !== "jdbc" && sourceType === databaseType.value);
+}
+const copySourceConnections = computed(() => store.connections.filter(isCompatibleCopyConnection));
+const copySourceCompatible = computed(() => !!copySourceConnection.value && isCompatibleCopyConnection(copySourceConnection.value));
+const copySourceRootSchemaMode = computed(() => namespaceOptionsAreSchemas(copySourceConnection.value));
+const copySourceHasSchema = computed(() => !copySourceRootSchemaMode.value && !connectionUsesDatabaseObjectTreeMode(copySourceConnection.value) && isSchemaAware(tableStructureDatabaseTypeForConnection(copySourceConnection.value)));
+const copySourceMetadataSchema = computed(() => connectionObjectTreeQuerySchema(copySourceConnection.value, copySourceDatabase.value, copySourceSchema.value));
+const copySourceTargetCatalog = computed(() => normalizedQueryTabCatalog(copySourceCatalogs.value, copySourceCatalog.value));
+
+function resetCopySourceTables() {
+ clearCopySourceTableSearchTimer();
+ ++copySourceTablesRequestId;
+ copySourceTablesLoading.value = false;
+ copySourceTables.value = [];
+ copySourceTablesOffset.value = 0;
+ copySourceTablesHasMore.value = false;
+ clearCopySourceTableSelection();
+}
+
+// Explicit cascade steps keep stale namespace requests from restoring old selections.
+async function changeCopySourceScope(level: "connection" | "catalog" | "database" | "schema", value: string, prefill = false) {
+ const requestId = ++copySourceScopeRequestId;
+ resetCopySourceTables();
+ copySourceTableSearch.value = "";
+ copySourceError.value = "";
+ copySourceScopeReady.value = false;
+ copySourceScopeLoading.value = true;
+ if (level === "connection") {
+ copySourceConnectionId.value = value;
+ copySourceCatalog.value = "";
+ copySourceCatalogs.value = [];
+ }
+ if (level === "catalog") copySourceCatalog.value = value;
+ if (level === "connection" || level === "catalog") {
+ copySourceDatabase.value = "";
+ copySourceDatabases.value = [];
+ }
+ if (level === "database") copySourceDatabase.value = value;
+ if (level !== "schema") {
+ copySourceSchema.value = "";
+ copySourceSchemas.value = [];
+ } else copySourceSchema.value = value;
+ const config = copySourceConnection.value;
+ const current = () => requestId === copySourceScopeRequestId && copyColumnsDialogOpen.value;
+ try {
+ if (!config || !isCompatibleCopyConnection(config)) return;
+ await store.ensureConnected(config.id, { activate: false });
+ if (!current() || !copySourceCompatible.value) return;
+ if (level === "connection" && connectionIsDorisFamilyCatalogCapable(config)) {
+ const catalogs = await api.listDorisCatalogs(config.id);
+ if (!current()) return;
+ copySourceCatalogs.value = catalogs;
+ copySourceCatalog.value = selectedQueryCatalogName(catalogs, prefill ? props.catalog : undefined);
+ if (!copySourceCatalog.value) return;
+ }
+ if (level === "connection" || level === "catalog") {
+ const catalog = copySourceTargetCatalog.value;
+ const databases = catalog ? await fetchCatalogNamespaceOptions(config.id, catalog, config) : await fetchNamespaceOptionsForConnection(config.id, config);
+ if (!current()) return;
+ copySourceDatabases.value = databases;
+ const preferred = prefill ? props.database : namespaceOptionsAreSchemas(config) ? config.username : config.database;
+ copySourceDatabase.value = databases.includes(preferred || "") ? preferred || "" : (databases[0] ?? "");
+ }
+ if (!copySourceDatabases.value.includes(copySourceDatabase.value)) return;
+ if (copySourceRootSchemaMode.value) {
+ // Oracle/Dameng expose their owner as the namespace immediately below a connection.
+ copySourceSchema.value = copySourceDatabase.value;
+ } else if (copySourceHasSchema.value && level !== "schema") {
+ const database = copySourceDatabase.value;
+ const schemas = await api.listSchemas(config.id, database);
+ if (!current()) return;
+ copySourceSchemas.value = schemaOptionsForConnection(schemas, config, database);
+ const preferred = prefill ? metadataSchema.value : "";
+ copySourceSchema.value = copySourceSchemas.value.includes(preferred) ? preferred : (copySourceSchemas.value[0] ?? "");
+ }
+ if (copySourceHasSchema.value && !copySourceSchemas.value.includes(copySourceSchema.value)) return;
+ // Preserve explicit metadata scope for an unknown JDBC driver on the current connection.
+ if (prefill && !copySourceRootSchemaMode.value && !copySourceHasSchema.value) copySourceSchema.value = props.schema || "";
+ copySourceScopeReady.value = true;
+ } catch (error: any) {
+ if (current()) copySourceError.value = error?.message || String(error);
+ } finally {
+ if (current()) copySourceScopeLoading.value = false;
+ }
+ if (current() && copySourceScopeReady.value) await loadCopySourceTables();
+}
+
function normalizedColumnSearch(value: string): string {
return value.trim().toLowerCase();
}
@@ -3658,7 +3762,9 @@ function clearCopySourceTableSearchTimer() {
function isCopySourceTable(table: TableInfo): boolean {
const databaseInfo = connection.value?.database_info;
- return isCreateMode.value || tableStructureIdentifierComparisonKey(table.name, databaseType.value, databaseInfo) !== tableStructureIdentifierComparisonKey(props.tableName, databaseType.value, databaseInfo);
+ const sameNamespace =
+ copySourceConnectionId.value === props.connectionId && copySourceDatabase.value === props.database && copySourceMetadataSchema.value === metadataSchema.value && (copySourceTargetCatalog.value || "") === (normalizedQueryTabCatalog(copySourceCatalogs.value, props.catalog || "") || "");
+ return isCreateMode.value || !sameNamespace || tableStructureIdentifierComparisonKey(table.name, databaseType.value, databaseInfo) !== tableStructureIdentifierComparisonKey(props.tableName, databaseType.value, databaseInfo);
}
function clearCopySourceTableSelection() {
@@ -3671,14 +3777,13 @@ function clearCopySourceTableSelection() {
}
async function loadCopySourceTables(offset = 0) {
- if (!props.connectionId || !props.database) return;
+ if (!copyColumnsDialogOpen.value || !copySourceScopeReady.value || !copySourceCompatible.value || copySourceScopeLoading.value) return;
clearCopySourceTableSelection();
const requestId = ++copySourceTablesRequestId;
copySourceTablesLoading.value = true;
copySourceError.value = "";
try {
- await store.ensureConnected(props.connectionId);
- const tables = await api.listTables(props.connectionId, props.database, metadataSchema.value, copySourceTableSearch.value.trim() || undefined, COPY_SOURCE_TABLE_PAGE_PROBE_SIZE, offset, ["TABLE"], props.catalog);
+ const tables = await api.listTables(copySourceConnectionId.value, copySourceDatabase.value, copySourceMetadataSchema.value, copySourceTableSearch.value.trim() || undefined, COPY_SOURCE_TABLE_PAGE_PROBE_SIZE, offset, ["TABLE"], copySourceTargetCatalog.value);
if (requestId !== copySourceTablesRequestId) return;
copySourceTables.value = tables.slice(0, COPY_SOURCE_TABLE_PAGE_SIZE).filter(isCopySourceTable);
copySourceTablesOffset.value = offset;
@@ -3697,50 +3802,52 @@ async function loadCopySourceTables(offset = 0) {
function updateCopySourceTableSearch(value: string | number) {
copySourceTableSearch.value = String(value);
- clearCopySourceTableSelection();
+ // Invalidate any in-flight load and restart the debounce, but keep the
+ // current list visible until the new results land to avoid a blank flicker.
clearCopySourceTableSearchTimer();
+ ++copySourceTablesRequestId;
copySourceTableSearchTimer = setTimeout(() => {
copySourceTableSearchTimer = undefined;
void loadCopySourceTables();
}, COPY_SOURCE_TABLE_SEARCH_DEBOUNCE_MS);
}
-watch(copyColumnsDialogOpen, (open) => {
- if (open) return;
- clearCopySourceTableSearchTimer();
- copySourceTablesRequestId++;
- copySourceColumnsRequestId++;
-});
+watch(
+ copyColumnsDialogOpen,
+ (open) => {
+ if (open) return;
+ ++copySourceScopeRequestId;
+ copySourceScopeReady.value = false;
+ copySourceScopeLoading.value = false;
+ resetCopySourceTables();
+ },
+ { flush: "sync" },
+);
+
+watch(
+ () => [props.connectionId, props.database, props.schema, props.catalog, props.tableName],
+ () => {
+ copyColumnsDialogOpen.value = false;
+ },
+ { flush: "sync" },
+);
async function openCopyColumnsDialog() {
if (!canAddColumn.value || !props.connectionId || !props.database) return;
copyColumnsDialogOpen.value = true;
- copySourceTableName.value = "";
- copySourceTableSearch.value = "";
- copySourceColumns.value = [];
- copySourceColumnSearch.value = "";
- selectedCopySourceColumnNames.value = [];
- copySourceError.value = "";
- copySourceColumnsRequestId++;
- copySourceColumnsLoading.value = false;
- copySourceTables.value = [];
- copySourceTablesOffset.value = 0;
- copySourceTablesHasMore.value = false;
- clearCopySourceTableSearchTimer();
- await loadCopySourceTables();
+ await changeCopySourceScope("connection", props.connectionId, true);
}
async function loadCopySourceColumns(tableName: string) {
+ if (!copySourceScopeReady.value || !copySourceCompatible.value || copySourceScopeLoading.value || copySourceTablesLoading.value) return;
+ clearCopySourceTableSelection();
copySourceTableName.value = tableName;
- copySourceColumns.value = [];
- copySourceColumnSearch.value = "";
- selectedCopySourceColumnNames.value = [];
copySourceError.value = "";
- if (!tableName || !props.connectionId || !props.database) return;
+ if (!tableName) return;
const requestId = ++copySourceColumnsRequestId;
copySourceColumnsLoading.value = true;
try {
- const sourceColumns = await api.getColumns(props.connectionId, props.database, metadataSchema.value, tableName, props.catalog);
+ const sourceColumns = await api.getColumns(copySourceConnectionId.value, copySourceDatabase.value, copySourceMetadataSchema.value, tableName, copySourceTargetCatalog.value);
if (requestId !== copySourceColumnsRequestId) return;
copySourceColumns.value = sourceColumns;
selectedCopySourceColumnNames.value = copyableSourceColumns.value.filter(({ alreadyExists }) => !alreadyExists).map(({ column }) => column.name);
@@ -3757,7 +3864,15 @@ function toggleCopySourceColumns() {
}
function applyCopiedColumns() {
- const copiedColumns = createCopiedColumnDrafts(selectedCopySourceColumns.value, databaseType.value, uuid);
+ if (!canAddColumn.value || !copySourceCompatible.value || !copySourceScopeReady.value || copySourceScopeLoading.value || copySourceTablesLoading.value || copySourceColumnsLoading.value || copySourceError.value) return;
+ const names = new Set(columns.value.filter((column) => !column.markedForDrop).map((column) => tableStructureIdentifierComparisonKey(column.name, databaseType.value, connection.value?.database_info)));
+ const sourceColumns = selectedCopySourceColumns.value.filter((column) => {
+ const key = tableStructureIdentifierComparisonKey(column.name, databaseType.value, connection.value?.database_info);
+ if (names.has(key)) return false;
+ names.add(key);
+ return true;
+ });
+ const copiedColumns = createCopiedColumnDrafts(sourceColumns, databaseType.value, uuid);
if (!copiedColumns.length) return;
const insertAt = resolveInsertColumnIndex(columns.value, selectedColumnId.value);
columns.value.splice(insertAt, 0, ...copiedColumns);
@@ -5495,6 +5610,7 @@ onActivated(() => {
if (activeTab.value === "ddl") scheduleDdlEditorInit();
});
onDeactivated(() => {
+ copyColumnsDialogOpen.value = false;
flushStructureScrollDraftSync();
if (structureColumnScrollingTimer) clearTimeout(structureColumnScrollingTimer);
structureColumnScrollingTimer = undefined;
@@ -5506,6 +5622,8 @@ onDeactivated(() => {
destroyDdlEditor();
});
onBeforeUnmount(() => {
+ ++copySourceScopeRequestId;
+ resetCopySourceTables();
structureLoadRequestId++;
flushStructureScrollDraftSync();
if (structureColumnScrollingTimer) clearTimeout(structureColumnScrollingTimer);
@@ -7181,19 +7299,81 @@ watch(
<DialogTitle>{{ t("structureEditor.copyColumnsTitle") }}</DialogTitle>
</DialogHeader>
- <div class="space-y-3 overflow-hidden">
+ <div class="max-h-[65vh] space-y-3 overflow-y-auto">
+ <p class="text-xs text-muted-foreground">{{ t("structureEditor.copyColumnsSameTypeOnly") }}</p>
+ <div class="grid gap-3 sm:grid-cols-2">
+ <div class="grid gap-1.5 text-sm font-medium">
+ <label id="copy-source-connection-label">{{ t("structureEditor.copyColumnsSourceConnection") }}</label>
+ <SearchableSelect
+ :model-value="copySourceConnectionId"
+ :options="copySourceConnections.map((config) => config.id)"
+ :placeholder="t('structureEditor.copyColumnsSourceConnection')"
+ :search-placeholder="t('structureEditor.copyColumnsSourceConnection')"
+ :empty-text="t('common.noResults')"
+ aria-labelledby="copy-source-connection-label"
+ trigger-class="h-8 w-full justify-between text-xs"
+ :display-name="(id: string) => store.getConfig(id)?.name || id"
+ @update:model-value="(value: string) => changeCopySourceScope('connection', value)"
+ />
+ </div>
+ <div v-if="copySourceCatalogs.length > 0" class="grid gap-1.5 text-sm font-medium">
+ <label id="copy-source-catalog-label">{{ t("structureEditor.copyColumnsSourceCatalog") }}</label>
+ <SearchableSelect
+ :model-value="copySourceCatalog"
+ :options="copySourceCatalogs.map((catalog) => catalog.name)"
+ :placeholder="t('structureEditor.copyColumnsSourceCatalog')"
+ :search-placeholder="t('structureEditor.copyColumnsSourceCatalog')"
+ :empty-text="t('common.noResults')"
+ aria-labelledby="copy-source-catalog-label"
+ trigger-class="h-8 w-full justify-between text-xs"
+ :disabled="copySourceScopeLoading || !copySourceCatalogs.length"
+ @update:model-value="(value: string) => changeCopySourceScope('catalog', value)"
+ />
+ </div>
+ <div class="grid gap-1.5 text-sm font-medium">
+ <label id="copy-source-database-label">{{ t(copySourceRootSchemaMode ? "structureEditor.copyColumnsSourceSchema" : "structureEditor.copyColumnsSourceDatabase") }}</label>
+ <SearchableSelect
+ :model-value="copySourceDatabase"
+ :options="copySourceDatabases"
+ :placeholder="t(copySourceRootSchemaMode ? 'structureEditor.copyColumnsSourceSchema' : 'structureEditor.copyColumnsSourceDatabase')"
+ :search-placeholder="t(copySourceRootSchemaMode ? 'structureEditor.copyColumnsSourceSchema' : 'structureEditor.copyColumnsSourceDatabase')"
+ :empty-text="t('common.noResults')"
+ aria-labelledby="copy-source-database-label"
+ trigger-class="h-8 w-full justify-between text-xs"
+ :disabled="copySourceScopeLoading || !copySourceDatabases.length"
+ @update:model-value="(value: string) => changeCopySourceScope('database', value)"
+ />
+ </div>
+ <div v-if="copySourceHasSchema" class="grid gap-1.5 text-sm font-medium">
+ <label id="copy-source-schema-label">{{ t("structureEditor.copyColumnsSourceSchema") }}</label>
+ <SearchableSelect
+ :model-value="copySourceSchema"
+ :options="copySourceSchemas"
+ :placeholder="t('structureEditor.copyColumnsSourceSchema')"
+ :search-placeholder="t('structureEditor.copyColumnsSourceSchema')"
+ :empty-text="t('common.noResults')"
+ aria-labelledby="copy-source-schema-label"
+ trigger-class="h-8 w-full justify-between text-xs"
+ :disabled="copySourceScopeLoading || !copySourceSchemas.length"
+ @update:model-value="(value: string) => changeCopySourceScope('schema', value)"
+ />
+ </div>
+ </div>
<div class="grid gap-1.5 text-sm font-medium">
<label for="copy-source-table-search">{{ t("structureEditor.copyColumnsSourceTable") }}</label>
- <Input id="copy-source-table-search" :model-value="copySourceTableSearch" :placeholder="t('structureEditor.copyColumnsSearchSourceTables')" @update:model-value="updateCopySourceTableSearch" />
+ <Input id="copy-source-table-search" :disabled="!copySourceScopeReady || copySourceScopeLoading" :model-value="copySourceTableSearch" :placeholder="t('structureEditor.copyColumnsSearchSourceTables')" @update:model-value="updateCopySourceTableSearch" />
</div>
- <div v-if="copySourceTablesLoading" class="flex items-center gap-2 py-5 text-sm text-muted-foreground">
+ <div v-if="copySourceScopeLoading || copySourceTablesLoading" class="flex items-center gap-2 py-5 text-sm text-muted-foreground">
<Loader2 class="h-4 w-4 animate-spin" />
{{ t("common.loading") }}
</div>
<div v-else-if="copySourceError" class="rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive">
{{ copySourceError }}
</div>
+ <div v-else-if="!copySourceScopeReady" class="rounded-md border border-dashed px-3 py-5 text-center text-sm text-muted-foreground">
+ {{ t("common.noResults") }}
+ </div>
<div v-else-if="copySourceTables.length === 0" class="rounded-md border border-dashed px-3 py-5 text-center text-sm text-muted-foreground">
{{ copySourceTableSearch ? t("structureEditor.copyColumnsNoMatchingSourceTables") : t("structureEditor.copyColumnsNoSourceTables") }}
</div>
@@ -7274,7 +7454,7 @@ watch(
<DialogFooter>
<Button variant="outline" @click="copyColumnsDialogOpen = false">{{ t("structureEditor.copyColumnsCancel") }}</Button>
- <Button :disabled="copySourceColumnsLoading || selectedCopySourceColumns.length === 0" @click="applyCopiedColumns">
+ <Button :disabled="!canAddColumn || !copySourceCompatible || !copySourceScopeReady || copySourceScopeLoading || copySourceTablesLoading || copySourceColumnsLoading || !!copySourceError || selectedCopySourceColumns.length === 0" @click="applyCopiedColumns">
{{ t("structureEditor.copyColumnsApply", { count: selectedCopySourceColumns.length }) }}
</Button>
</DialogFooter>
diff --git a/apps/desktop/src/i18n/locales/az.ts b/apps/desktop/src/i18n/locales/az.ts
index 4fbe638bc4..0fa96eff13 100644
--- a/apps/desktop/src/i18n/locales/az.ts
+++ b/apps/desktop/src/i18n/locales/az.ts
@@ -4597,13 +4597,18 @@ export default withEnglishFallback({
copyColumns: "Başqa cədvəldən sahələri kopyala",
copyColumn: "Sütunu kopyala",
copyColumnsTitle: "Başqa cədvəldən sütunları kopyala",
+ copyColumnsSourceConnection: "Mənbə bağlantısı",
+ copyColumnsSourceDatabase: "Mənbə verilənlər bazası",
+ copyColumnsSourceSchema: "Mənbə sxemi",
+ copyColumnsSourceCatalog: "Mənbə kataloqu",
+ copyColumnsSameTypeOnly: "Yalnız eyni verilənlər bazası növünə malik bağlantılar mövcuddur.",
copyColumnsSourceTable: "Mənbə cədvəli",
copyColumnsSearchSourceTables: "Mənbə cədvəllərini axtar",
copyColumnsSelectFields: "Sahələri seç",
copyColumnsSearchFields: "Sahələri və ya növləri axtar",
copyColumnsSelectAll: "Hamısını seç",
copyColumnsClearSelection: "Seçimi təmizlə",
- copyColumnsNoSourceTables: "Bu sxemdə başqa cədvəl yoxdur.",
+ copyColumnsNoSourceTables: "Seçilmiş mənbədə başqa cədvəl yoxdur.",
copyColumnsNoMatchingSourceTables: "Axtarışa uyğun mənbə cədvəli yoxdur.",
copyColumnsPreviousSourceTablePage: "Mənbə cədvəllərinin əvvəlki səhifəsi",
copyColumnsNextSourceTablePage: "Mənbə cədvəllərinin növbəti səhifəsi",
diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.ts
index 9de906cd6b..975c61b1d0 100644
--- a/apps/desktop/src/i18n/locales/en.ts
+++ b/apps/desktop/src/i18n/locales/en.ts
@@ -5710,13 +5710,18 @@ export default {
copyColumns: "Copy Fields from Another Table",
copyColumn: "Copy Column",
copyColumnsTitle: "Copy Columns from Another Table",
+ copyColumnsSourceConnection: "Source connection",
+ copyColumnsSourceDatabase: "Source database",
+ copyColumnsSourceSchema: "Source schema",
+ copyColumnsSourceCatalog: "Source catalog",
+ copyColumnsSameTypeOnly: "Only connections with the same database type are available.",
copyColumnsSourceTable: "Source table",
copyColumnsSearchSourceTables: "Search source tables",
copyColumnsSelectFields: "Select fields",
copyColumnsSearchFields: "Search fields or types",
copyColumnsSelectAll: "Select all",
copyColumnsClearSelection: "Clear selection",
- copyColumnsNoSourceTables: "No other tables are available in this schema.",
+ copyColumnsNoSourceTables: "No other tables are available in the selected source.",
copyColumnsNoMatchingSourceTables: "No source tables match the search.",
copyColumnsPreviousSourceTablePage: "Previous source table page",
copyColumnsNextSourceTablePage: "Next source table page",
diff --git a/apps/desktop/src/i18n/locales/es.ts b/apps/desktop/src/i18n/locales/es.ts
index 143853d790..240cc0d899 100644
--- a/apps/desktop/src/i18n/locales/es.ts
+++ b/apps/desktop/src/i18n/locales/es.ts
@@ -5069,13 +5069,18 @@ export default withEnglishFallback({
copyColumns: "Copiar campos de otra tabla",
copyColumn: "Copiar columna",
copyColumnsTitle: "Copiar columnas de otra tabla",
+ copyColumnsSourceConnection: "Conexión de origen",
+ copyColumnsSourceDatabase: "Base de datos de origen",
+ copyColumnsSourceSchema: "Esquema de origen",
+ copyColumnsSourceCatalog: "Catálogo de origen",
+ copyColumnsSameTypeOnly: "Solo se permiten conexiones del mismo tipo de base de datos.",
copyColumnsSourceTable: "Tabla de origen",
copyColumnsSearchSourceTables: "Buscar tablas de origen",
copyColumnsSelectFields: "Selecciona campos",
copyColumnsSearchFields: "Buscar campos o tipos",
copyColumnsSelectAll: "Seleccionar todo",
copyColumnsClearSelection: "Borrar selección",
- copyColumnsNoSourceTables: "No hay otras tablas disponibles en este esquema.",
+ copyColumnsNoSourceTables: "No hay otras tablas disponibles en el origen seleccionado.",
copyColumnsNoMatchingSourceTables: "Ninguna tabla de origen coincide con la búsqueda.",
copyColumnsPreviousSourceTablePage: "Página anterior de tablas de origen",
copyColumnsNextSourceTablePage: "Página siguiente de tablas de origen",
diff --git a/apps/desktop/src/i18n/locales/id.ts b/apps/desktop/src/i18n/locales/id.ts
index 7d108af8b1..ab6516825f 100644
--- a/apps/desktop/src/i18n/locales/id.ts
+++ b/apps/desktop/src/i18n/locales/id.ts
@@ -5255,13 +5255,18 @@ export default withEnglishFallback({
copyColumns: "Salin Field dari Tabel Lain",
copyColumn: "Salin Kolom",
copyColumnsTitle: "Salin Kolom dari Tabel Lain",
+ copyColumnsSourceConnection: "Koneksi sumber",
+ copyColumnsSourceDatabase: "Database sumber",
+ copyColumnsSourceSchema: "Skema sumber",
+ copyColumnsSourceCatalog: "Katalog sumber",
+ copyColumnsSameTypeOnly: "Hanya koneksi dengan jenis database yang sama yang tersedia.",
copyColumnsSourceTable: "Tabel sumber",
copyColumnsSearchSourceTables: "Cari tabel sumber",
copyColumnsSelectFields: "Pilih field",
copyColumnsSearchFields: "Cari field atau tipe",
copyColumnsSelectAll: "Pilih semua",
copyColumnsClearSelection: "Bersihkan pilihan",
- copyColumnsNoSourceTables: "Tidak ada tabel lain yang tersedia di skema ini.",
+ copyColumnsNoSourceTables: "Tidak ada tabel lain yang tersedia di sumber yang dipilih.",
copyColumnsNoMatchingSourceTables: "Tidak ada tabel sumber yang cocok dengan pencarian.",
copyColumnsPreviousSourceTablePage: "Halaman tabel sumber sebelumnya",
copyColumnsNextSourceTablePage: "Halaman tabel sumber berikutnya",
diff --git a/apps/desktop/src/i18n/locales/it.ts b/apps/desktop/src/i18n/locales/it.ts
index f3e4613f0e..80277576ec 100644
--- a/apps/desktop/src/i18n/locales/it.ts
+++ b/apps/desktop/src/i18n/locales/it.ts
@@ -4889,13 +4889,18 @@ export default withEnglishFallback({
copyColumns: "Copia campi da un'altra tabella",
copyColumn: "Copia colonna",
copyColumnsTitle: "Copia colonne da un'altra tabella",
+ copyColumnsSourceConnection: "Connessione di origine",
+ copyColumnsSourceDatabase: "Database di origine",
+ copyColumnsSourceSchema: "Schema di origine",
+ copyColumnsSourceCatalog: "Catalogo di origine",
+ copyColumnsSameTypeOnly: "Sono disponibili solo connessioni dello stesso tipo di database.",
copyColumnsSourceTable: "Tabella di origine",
copyColumnsSearchSourceTables: "Cerca tabelle di origine",
copyColumnsSelectFields: "Seleziona campi",
copyColumnsSearchFields: "Cerca campi o tipi",
copyColumnsSelectAll: "Seleziona tutto",
copyColumnsClearSelection: "Cancella selezione",
- copyColumnsNoSourceTables: "Non sono disponibili altre tabelle in questo schema.",
+ copyColumnsNoSourceTables: "Non sono disponibili altre tabelle nell’origine selezionata.",
copyColumnsNoMatchingSourceTables: "Nessuna tabella di origine corrisponde alla ricerca.",
copyColumnsPreviousSourceTablePage: "Pagina precedente delle tabelle di origine",
copyColumnsNextSourceTablePage: "Pagina successiva delle tabelle di origine",
diff --git a/apps/desktop/src/i18n/locales/ja.ts b/apps/desktop/src/i18n/locales/ja.ts
index b133f98776..bf8725cbdb 100644
--- a/apps/desktop/src/i18n/locales/ja.ts
+++ b/apps/desktop/src/i18n/locales/ja.ts
@@ -4951,13 +4951,18 @@ export default withEnglishFallback({
copyColumns: "別のテーブルから列をコピー",
copyColumn: "列をコピー",
copyColumnsTitle: "別のテーブルから列をコピー",
+ copyColumnsSourceConnection: "コピー元の接続",
+ copyColumnsSourceDatabase: "コピー元のデータベース",
+ copyColumnsSourceSchema: "コピー元のスキーマ",
+ copyColumnsSourceCatalog: "コピー元のカタログ",
+ copyColumnsSameTypeOnly: "同じデータベース種類の接続のみ利用できます。",
copyColumnsSourceTable: "コピー元テーブル",
copyColumnsSearchSourceTables: "コピー元テーブルを検索",
copyColumnsSelectFields: "フィールドを選択",
copyColumnsSearchFields: "フィールドまたは型を検索",
copyColumnsSelectAll: "すべて選択",
copyColumnsClearSelection: "選択を解除",
- copyColumnsNoSourceTables: "このスキーマには他に選択可能なテーブルがありません。",
+ copyColumnsNoSourceTables: "選択したコピー元に他のテーブルはありません。",
copyColumnsNoMatchingSourceTables: "検索に一致するコピー元テーブルはありません。",
copyColumnsPreviousSourceTablePage: "コピー元テーブルの前のページ",
copyColumnsNextSourceTablePage: "コピー元テーブルの次のページ",
diff --git a/apps/desktop/src/i18n/locales/ko.ts b/apps/desktop/src/i18n/locales/ko.ts
index ec22b05b7c..eeab636127 100644
--- a/apps/desktop/src/i18n/locales/ko.ts
+++ b/apps/desktop/src/i18n/locales/ko.ts
@@ -4831,13 +4831,18 @@ export default withEnglishFallback({
copyColumns: "다른 테이블에서 필드 복사",
copyColumn: "컬럼 복사",
copyColumnsTitle: "다른 테이블에서 컬럼 복사",
+ copyColumnsSourceConnection: "원본 연결",
+ copyColumnsSourceDatabase: "원본 데이터베이스",
+ copyColumnsSourceSchema: "원본 스키마",
+ copyColumnsSourceCatalog: "원본 카탈로그",
+ copyColumnsSameTypeOnly: "동일한 데이터베이스 유형의 연결만 사용할 수 있습니다.",
copyColumnsSourceTable: "원본 테이블",
copyColumnsSearchSourceTables: "원본 테이블 검색",
copyColumnsSelectFields: "필드 선택",
copyColumnsSearchFields: "필드 또는 유형 검색",
copyColumnsSelectAll: "모두 선택",
copyColumnsClearSelection: "선택 해제",
- copyColumnsNoSourceTables: "이 스키마에 선택할 수 있는 다른 테이블이 없습니다.",
+ copyColumnsNoSourceTables: "선택한 원본에 다른 테이블이 없습니다.",
copyColumnsNoMatchingSourceTables: "검색과 일치하는 원본 테이블이 없습니다.",
copyColumnsPreviousSourceTablePage: "원본 테이블 이전 페이지",
copyColumnsNextSourceTablePage: "원본 테이블 다음 페이지",
diff --git a/apps/desktop/src/i18n/locales/pt-BR.ts b/apps/desktop/src/i18n/locales/pt-BR.ts
index a7d9d41b46..5a2604ff48 100644
--- a/apps/desktop/src/i18n/locales/pt-BR.ts
+++ b/apps/desktop/src/i18n/locales/pt-BR.ts
@@ -4889,13 +4889,18 @@ export default withEnglishFallback({
copyColumns: "Copiar campos de outra tabela",
copyColumn: "Copiar coluna",
copyColumnsTitle: "Copiar colunas de outra tabela",
+ copyColumnsSourceConnection: "Conexão de origem",
+ copyColumnsSourceDatabase: "Banco de dados de origem",
+ copyColumnsSourceSchema: "Esquema de origem",
+ copyColumnsSourceCatalog: "Catálogo de origem",
+ copyColumnsSameTypeOnly: "Apenas conexões do mesmo tipo de banco de dados estão disponíveis.",
copyColumnsSourceTable: "Tabela de origem",
copyColumnsSearchSourceTables: "Pesquisar tabelas de origem",
copyColumnsSelectFields: "Selecione campos",
copyColumnsSearchFields: "Pesquisar campos ou tipos",
copyColumnsSelectAll: "Selecionar tudo",
copyColumnsClearSelection: "Limpar seleção",
- copyColumnsNoSourceTables: "Não há outras tabelas disponíveis neste esquema.",
+ copyColumnsNoSourceTables: "Não há outras tabelas disponíveis na origem selecionada.",
copyColumnsNoMatchingSourceTables: "Nenhuma tabela de origem corresponde à pesquisa.",
copyColumnsPreviousSourceTablePage: "Página anterior de tabelas de origem",
copyColumnsNextSourceTablePage: "Próxima página de tabelas de origem",
diff --git a/apps/desktop/src/i18n/locales/ru.ts b/apps/desktop/src/i18n/locales/ru.ts
index c06e799601..866abc5414 100644
--- a/apps/desktop/src/i18n/locales/ru.ts
+++ b/apps/desktop/src/i18n/locales/ru.ts
@@ -5356,13 +5356,18 @@ export default withEnglishFallback({
copyColumns: "Копировать поля из другой таблицы",
copyColumn: "Копировать столбец",
copyColumnsTitle: "Копирование столбцов из другой таблицы",
+ copyColumnsSourceConnection: "Исходное подключение",
+ copyColumnsSourceDatabase: "Исходная база данных",
+ copyColumnsSourceSchema: "Исходная схема",
+ copyColumnsSourceCatalog: "Исходный каталог",
+ copyColumnsSameTypeOnly: "Доступны только подключения с тем же типом базы данных.",
copyColumnsSourceTable: "Исходная таблица",
copyColumnsSearchSourceTables: "Поиск исходных таблиц",
copyColumnsSelectFields: "Выберите поля",
copyColumnsSearchFields: "Поиск полей или типов",
copyColumnsSelectAll: "Выбрать все",
copyColumnsClearSelection: "Снять выделение",
- copyColumnsNoSourceTables: "В этой схеме нет других доступных таблиц.",
+ copyColumnsNoSourceTables: "В выбранном источнике нет других доступных таблиц.",
copyColumnsNoMatchingSourceTables: "Нет исходных таблиц, соответствующих поиску.",
copyColumnsPreviousSourceTablePage: "Предыдущая страница исходных таблиц",
copyColumnsNextSourceTablePage: "Следующая страница исходных таблиц",
diff --git a/apps/desktop/src/i18n/locales/tr.ts b/apps/desktop/src/i18n/locales/tr.ts
index 528b459080..eace01b731 100644
--- a/apps/desktop/src/i18n/locales/tr.ts
+++ b/apps/desktop/src/i18n/locales/tr.ts
@@ -4499,13 +4499,18 @@ export default withEnglishFallback({
copyColumns: "Başka Tablodan Alan Kopyala",
copyColumn: "Sütunu Kopyala",
copyColumnsTitle: "Başka Tablodan Sütun Kopyala",
+ copyColumnsSourceConnection: "Kaynak bağlantı",
+ copyColumnsSourceDatabase: "Kaynak veritabanı",
+ copyColumnsSourceSchema: "Kaynak şema",
+ copyColumnsSourceCatalog: "Kaynak katalog",
+ copyColumnsSameTypeOnly: "Yalnızca aynı veritabanı türündeki bağlantılar kullanılabilir.",
copyColumnsSourceTable: "Kaynak tablo",
copyColumnsSearchSourceTables: "Kaynak tablolarda ara",
copyColumnsSelectFields: "Alanları seç",
copyColumnsSearchFields: "Alan veya tür ara",
copyColumnsSelectAll: "Tümünü seç",
copyColumnsClearSelection: "Seçimi temizle",
- copyColumnsNoSourceTables: "Bu şemada başka tablo yok.",
+ copyColumnsNoSourceTables: "Seçilen kaynakta başka tablo yok.",
copyColumnsNoMatchingSourceTables: "Aramayla eşleşen kaynak tablo yok.",
copyColumnsPreviousSourceTablePage: "Seçili tablonun alanı yok.",
copyColumnsNextSourceTablePage: "Aramayla eşleşen alan yok.",
diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.ts
index a0d5a64c1d..d3e6e4afbe 100644
--- a/apps/desktop/src/i18n/locales/zh-CN.ts
+++ b/apps/desktop/src/i18n/locales/zh-CN.ts
@@ -5699,13 +5699,18 @@ export default withEnglishFallback({
copyColumns: "复制其他表字段",
copyColumn: "复制字段",
copyColumnsTitle: "从其他表复制字段",
+ copyColumnsSourceConnection: "来源连接",
+ copyColumnsSourceDatabase: "来源数据库",
+ copyColumnsSourceSchema: "来源模式",
+ copyColumnsSourceCatalog: "来源目录(Catalog)",
+ copyColumnsSameTypeOnly: "仅支持相同数据库类型的连接。",
copyColumnsSourceTable: "源表",
copyColumnsSearchSourceTables: "搜索源表",
copyColumnsSelectFields: "选择字段",
copyColumnsSearchFields: "搜索字段或类型",
copyColumnsSelectAll: "全选",
copyColumnsClearSelection: "取消全选",
- copyColumnsNoSourceTables: "当前模式下没有其他可选表。",
+ copyColumnsNoSourceTables: "所选来源中没有其他可选表。",
copyColumnsNoMatchingSourceTables: "没有匹配的源表。",
copyColumnsPreviousSourceTablePage: "上一页源表",
copyColumnsNextSourceTablePage: "下一页源表",
diff --git a/apps/desktop/src/i18n/locales/zh-TW.ts b/apps/desktop/src/i18n/locales/zh-TW.ts
index 717cf674af..f376e1bd2d 100644
--- a/apps/desktop/src/i18n/locales/zh-TW.ts
+++ b/apps/desktop/src/i18n/locales/zh-TW.ts
@@ -4636,13 +4636,18 @@ export default withEnglishFallback({
copyColumns: "複製其他資料表欄位",
copyColumn: "複製欄位",
copyColumnsTitle: "從其他資料表複製欄位",
+ copyColumnsSourceConnection: "來源連線",
+ copyColumnsSourceDatabase: "來源資料庫",
+ copyColumnsSourceSchema: "來源結構描述",
+ copyColumnsSourceCatalog: "來源目錄(Catalog)",
+ copyColumnsSameTypeOnly: "僅支援相同資料庫類型的連線。",
copyColumnsSourceTable: "來源資料表",
copyColumnsSearchSourceTables: "搜尋來源資料表",
copyColumnsSelectFields: "選擇欄位",
copyColumnsSearchFields: "搜尋欄位或類型",
copyColumnsSelectAll: "全選",
copyColumnsClearSelection: "取消全選",
- copyColumnsNoSourceTables: "目前結構描述中沒有其他可選資料表。",
+ copyColumnsNoSourceTables: "所選來源中沒有其他可選資料表。",
copyColumnsNoMatchingSourceTables: "沒有符合搜尋的來源資料表。",
copyColumnsPreviousSourceTablePage: "上一頁來源資料表",
copyColumnsNextSourceTablePage: "下一頁來源資料表",