These are chat archives for jinzhu/gorm

24th
Jul 2017
Horacio Duran
@perrito666
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?)