-
Hi, I am trying to get going with this project. I am following somewhat the intro video and readme. But I am getting compiler error when trying to use infer. I am not sure what I am missing. w := &models.Warrantyrequest{Status: null.StringFrom(models.StatusenumOPEN.String())}
err = w.Insert(context.Background(), db, boil.Infer())
// cannot use boil.Infer() (value of type boil.Columns) as boil.Columns value in argument to w.Insert (compilerIncompatibleAssign) |
Beta Was this translation helpful? Give feedback.
Answered by
bluebrown
Dec 11, 2021
Replies: 1 comment
-
The problem was that I was using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bluebrown
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
The problem was that I was using
github.com/volatiletech/sqlboiler/boil
while I had to usegithub.heygears.com/volatiletech/sqlboiler/v4/boil
.