Skip to content

postgrelize / CopyToFormatOptions

Type Alias: CopyToFormatOptions ​

CopyToFormatOptions = Readonly<{ delimiter?: string; format?: "text" | "csv" | "binary"; header?: boolean; nullString?: string; quote?: string; }>

Defined in: src/model/copy-options.ts:32

postgrelize extension

Output format options of Model.copyTo (COPY ... TO STDOUT). PostgreSQL extension.

Example ​

ts
const format: CopyToFormatOptions = { format: 'csv', header: true, delimiter: ';', nullString: '' };

Released under the MIT License.