Interface DataImportOptions

Options for data import.

interface DataImportOptions {
    dropTables?: boolean;
    skipSchema?: boolean;
    skipData?: boolean;
    batchSize?: number;
    tables?: string[];
    onConflict?: "replace" | "error" | "ignore";
}

Properties

dropTables?: boolean

Drop existing tables before import

skipSchema?: boolean

Skip schema creation (data only)

skipData?: boolean

Skip data import (schema only)

batchSize?: number

Batch size for inserts

tables?: string[]

Tables to import (all if not specified)

onConflict?: "replace" | "error" | "ignore"

On conflict strategy