MCPcopy
hub / github.com/go-gorm/gorm / Build

Method Build

clause/where.go:121–129  ·  view source on GitHub ↗
(builder Builder)

Source from the content-addressed store, hash-verified

119}
120
121func (and AndConditions) Build(builder Builder) {
122 if len(and.Exprs) > 1 {
123 builder.WriteByte('(')
124 buildExprs(and.Exprs, builder, AndWithSpace)
125 builder.WriteByte(')')
126 } else {
127 buildExprs(and.Exprs, builder, AndWithSpace)
128 }
129}
130
131func Or(exprs ...Expression) Expression {
132 if len(exprs) == 0 {

Callers

nothing calls this directly

Calls 2

buildExprsFunction · 0.85
WriteByteMethod · 0.65

Tested by

no test coverage detected