Skip to content

postgrelize / WriteStatementOptions

Type Alias: WriteStatementOptions<T> ​

WriteStatementOptions<T> = Readonly<{ returning?: boolean; where?: WhereOptions<T>; }>

Defined in: src/model/statement-builder.ts:19

Options of Model.deleteStatement() and Model.updateStatement().

Type Parameters ​

T ​

T = Values

Example ​

ts
const options: WriteStatementOptions<Task> = { where: { done: true }, returning: true };

Released under the MIT License.