We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serializer.go 中
func (v ValuerType) GormValue(ctx context.Context, db *gorm.DB) (expr clause.Expr) { stmt := db.Statement.Schema field := stmt.LookUpField(v.Column) newValue, err := v.Value.Value(context.WithValue(ctx, "func_name", v.FucName), field, reflect.ValueOf(v.Value), v.Value) db.AddError(err) return clause.Expr{SQL: "?", Vars: []interface{}{newValue}} }
这里,所设置的 func_name,最终会在什么场景下用到?搜索了 gorm 的代码,好像也没有使用 func_name 的地方
The text was updated successfully, but these errors were encountered:
No branches or pull requests
serializer.go 中
这里,所设置的 func_name,最终会在什么场景下用到?搜索了 gorm 的代码,好像也没有使用 func_name 的地方
The text was updated successfully, but these errors were encountered: