doUpdate
Defines the DO UPDATE action using a raw SET expression. Use EXCLUDED to reference the values that were attempted to insert.
doUpdate("tribute_amount = EXCLUDED.tribute_amount")Content copied to clipboard
Defines the DO UPDATE action using column-value pairs.
doUpdate(
"tribute_amount" to "EXCLUDED.tribute_amount",
"last_collected_at" to "NOW()"
)Content copied to clipboard
Defines the DO UPDATE action using a map. Useful when the update columns are determined at runtime, e.g., when only non-null fields of a patch request should be updated.