serious-snow
serious-snow
### Search before asking - [X] I had searched in the [issues](https://github.com/RocketChat/Rocket.Chat.Electron/issues?q=is%3Aissue) and found no similar issues. ### Operating System - [X] macOS - [ ] Windows - [ ]...
gofumpt Enforce a stricter format than gofmt, while being backwards compatible. That is, gofumpt is happy with a subset of the formats that gofmt is happy with. repo is https://github.com/mvdan/gofumpt
## Describe the feature 1. 假设要自定义排序。 ``` q.ReplaceDB(q.UnderlyingDB().Clauses(clause.OrderBy{ Expression: clause.Expr{SQL: "? ASC NULLS FIRST", Vars: []any{someTable.SomeColumn}}, })) ``` 这样不很奇怪吗? 我还要去使用gorm.DB, 那我用gen做什么呢?希望把expr.setE改为公开的方法。 我建议加一个方法 ``` func (e expr) SetE(expression clause.Expression) expr {...
## RETURNING support for Delete Operation 使用 gorm.DB 删除, result的长度是1 ``` go var result []*model.Record err = db.WithContext(ctx).Clauses(clause.Returning{}). Where(query.Record.ID.Eq(record.ID).RawExpr()). Delete(&result).Error if err != nil { t.Fatal(err) } if len(result) !=...
v0.1.4的代码不是最新的,有没有考虑发布v0.1.5