Open
Description
The recent 0.29.0
release made some pretty substantial changes to the generated code's API (and I hope for the good), one of which was the deprecation of Upsert()
in favor of Insert()
with some mods.
Assuming that one now has to use im.OnConflict()
or im.OnConflictOnConstraint()
to achieve the same behavior, the table's primary key and/or constraint names needs to be specified explicitly for use in these mods.
Whereas before this was handled automatically by the Upsert()
, when passing conflictCols
equal to nil
:
Lines 205 to 207 in 09c8491
As a result, one now has to type these constraints by hand, which makes things more error-prone than they were before.