feat(mongodb): allow editing inferred CSV import column types

This commit is contained in:
onenewcode authored and GitHub committed 2026-09-15 13:39:59 +08:00
1 parent 99738c160c
commit 83c8447b4d
17 files changed
+706 -33

No files matched your search

+2
View File
@@ -1033,6 +1033,8 @@ export type {
TableImportProgress,
MongoImportFormat,
MongoImportTypeMode,
MongoImportInferredType,
MongoImportColumn,
MongoImportIssue,
MongoImportParseOptions,
MongoImportPreviewRequest,
+2 -1
View File
@@ -5047,7 +5047,7 @@ export async function releaseTableImportSource(_sourceRef: string): Promise<bool
export type MongoImportFormat = "csv" | "json" | "ndjson";
export type MongoImportTypeMode = "string" | "auto" | "extendedJson";
export type MongoImportInferredType = "boolean" | "integer" | "decimal" | "date" | "object" | "array" | "string";
export type MongoImportInferredType = "boolean" | "integer" | "decimal" | "date" | "objectId" | "object" | "array" | "mixed" | "string";
export type MongoImportStatus = "running" | "done" | "error" | "cancelled";
export type MongoImportPhase = "preparing" | "parsing" | "writing" | "done";
export type MongoExportFormat = "csv" | "ndjson";
@@ -5072,6 +5072,7 @@ export interface MongoImportParseOptions {
typeMode?: MongoImportTypeMode | null;
recognizeObjectIdHex?: boolean | null;
skipErrorRows?: boolean | null;
columnTypes?: Partial<Record<string, MongoImportInferredType>> | null;
}
export interface MongoImportPreviewRequest {