struct CQL::ActiveRecord::BulkInsert::Conflict

Overview

ON CONFLICT for Model.upsert_all: target columns find the existing row, update columns take the incoming value (by default every inserted column but the target, the key and created_at).

Defined in:

active_record/bulk_insert.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(target : Array(Symbol), update : Array(Symbol) | Nil = nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(target _target = @target, update _update = @update) #

[View source]
def target : Array(Symbol) #

def update : Array(Symbol) | Nil #