Closed EverybodyKurts closed 8 months ago
I made one small change (added |> AtLeastOne.tryCreate
).
While you can technically just use Option.get
, it's a foot-gun that circumvents checking that you are not trying to insert an empty list (which will fail as a runtime exception).
Thanks!
Add an example on how to upsert multiple records in a single PostgreSQL statement.