github.com/xorm-io/builder
Package builder is a simple and powerful sql builder for Go. Make sure you have installed Go 1.1+ and then: WARNNING: Currently, only query conditions are supported. Below is the supported conditions. 1. Eq is a redefine of a map, you can give one or more conditions to Eq 2. Neq is the same to Eq 3. Gt, Gte, Lt, Lte 4. Like 5. Expr you can customerize your sql with Expr 6. In and NotIn 7. IsNull and NotNull 8. And(conds ...Cond), And can connect one or more condtions via AND 9. Or(conds ...Cond), Or can connect one or more conditions via Or 10. Between 11. define yourself conditions Since Cond is a interface, you can define yourself conditions and compare with them
proxy.golang.org
v0.3.13
about 3 years ago
17
3
10
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/xorm-io/builder
spec |
| License | BSD-3-Clause |
| Namespace | github.com/xorm-io |
| First Release | about 8 years ago |
| Last Synced | 7 days ago |