These are chat archives for jinzhu/gorm

Jul 2017
Horacio Duran
Jul 24 2017 21:55

hello everyone, I am trying to do something like:

db.Create(User{ID: "anuuid-that-is-valid"})

as you can see the ID field is non zero by default since I am trying to pick it myself before insert, this makes NewRecord a No go for me, how would then I know after the Create if the record was created or not? (and would it fail if not?)