I have a simple insert that looks like:
records += Record(c1, c2, c3)
I'd like to change it to make that insert conditional. I don't want to proceed with the insert if a record exists where the all the columns match but c3 is null.
I'd like to have Slick generate the following:
insert into mytable (c1, c2, c3) values ('one', 'two', 'three')
where not exists (select 1 from mytable where c1 = 'one' and c2 = 'two' and c3 is null);