struct

Ralph::UpsertOptions

Inherits Struct / Value / Object

Options for upsert conflict resolution

Constructors

new(conflict_columns : Array(String) = [] of String, update_columns : Array(String) = [] of String, do_nothing : Bool = false)
Source

Instance methods

conflict_columns

Column(s) to check for conflicts

Source
do_nothing

Whether to update nothing on conflict (INSERT IGNORE behavior)

Source
update_columns

Columns to update on conflict (if empty, updates all non-conflict columns)

Source