Skip to content

CopyFromBlobStatementOptions

Defined in: packages/client/src/sync/copy.ts:248

The inputs buildCopyFromBlobStatement renders a COPY-from-blob statement from.

columns: readonly string[]

Defined in: packages/client/src/sync/copy.ts:260

The DB column names to load, in order. ONE array drives both halves of the statement: the COPY column list and the field order of the serialized body, so they cannot drift.


rows: readonly Record<string, unknown>[]

Defined in: packages/client/src/sync/copy.ts:262

The rows to load, keyed by DB column name (a key missing from a row is loaded as NULL).


table: AnyPgTable

Defined in: packages/client/src/sync/copy.ts:255

The REAL Drizzle table object to load into — the identifier is read off it with getTableConfig, never taken as a hand-written string, so a rename can never leave a stale name in the SQL. A bare (schemaless) table renders unqualified and resolves through search_path (that is how the applier reaches an ephemeral relation in pg_temp).


optional udtNames?: Readonly<Record<string, string | undefined>>

Defined in: packages/client/src/sync/copy.ts:267

DB column name → Postgres udt_name, per generateCopyData. Needed for json/jsonb (and _json/_jsonb) columns; ignored for every other type.