Skip to content

postgrelize / CopyToOptions

Type Alias: CopyToOptions<T> ​

CopyToOptions<T> = FindOptions<T> & CopyToFormatOptions

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

postgrelize extension

Options of Model.copyTo: a finder query that selects the exported rows plus the output format. PostgreSQL extension.

Type Parameters ​

T ​

T = Values

See ​

Model.copyTo

Example ​

ts
const opts: CopyToOptions<User> = { where: { active: true }, order: [['id', 'ASC']], format: 'csv', header: true };

Released under the MIT License.