postgrelize / CopyToOptions
Type Alias: CopyToOptions<T> ​
CopyToOptions<
T> =FindOptions<T> &CopyToFormatOptions
Defined in: src/model/copy-options.ts:58
postgrelize extensionOptions of Model.copyTo: a finder query that selects the exported rows plus the output format. PostgreSQL extension.
Type Parameters ​
T ​
T = Values
See ​
Example ​
ts
const opts: CopyToOptions<User> = { where: { active: true }, order: [['id', 'ASC']], format: 'csv', header: true };