I've created an upsert like this in go-pg:
db.Model(myModel).Returning("id").
OnConflict("(fieldA) DO UPDATE set fieldB=EXCLUDED.fieldB").Insert()
and now I'd like to read the returned id. How would I do that? All the examples I've seen ignore the result returned by the insert/update queries.