go-rel / rel

:gem: Modern ORM for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API

Home Page:https://go-rel.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upsert support

gandaldf opened this issue · comments

Hi! I'd like to know if REL supports some kind of "Upsert" function to update an existing record or insert it if it doesn't exists.

it's supported since very recently (not documented yet): #269

can you try: repo.Insert(ctx, &record, rel.OnConflictReplace())?

Ok, I'll try!
Thank you!