Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for Model.upsert method

Hierarchy

Index

Properties

Optional benchmark

benchmark: boolean

Print query execution time in milliseconds when logging SQL.

Optional fields

fields: string[]

The fields to insert / update. Defaults to all fields

Optional logging

logging: boolean | Function

A function that gets executed while running the query to log the sql.

Optional searchPath

searchPath: string

An optional parameter to specify the schema search_path (Postgres only)

Optional transaction

transaction: Transaction

Transaction to run query under

Optional validate

validate: boolean

Run validations before the row is inserted

Generated using TypeDoc