type test struct {
Id nullable.Uint64
}
defaultValue := uint64(0)
nullableValue := nullable.NewUint64(&defaultValue)
db.Model(&test).Select("id").Pluck("id", &nullableValue)
I can see that the first is used to get the value with the model in the gorm. test code
However, it does not seem to work in the above situation.
How should I use it in gorm?
I can see that the first is used to get the value with the model in the gorm. test code
However, it does not seem to work in the above situation.
How should I use it in gorm?