MCPcopy Index your code
hub / github.com/upper/db / Where

Method Where

internal/sqlbuilder/select.go:195–203  ·  view source on GitHub ↗
(terms ...interface{})

Source from the content-addressed store, hash-verified

193}
194
195func (sel *selector) Where(terms ...interface{}) db.Selector {
196 return sel.frame(func(sq *selectorQuery) error {
197 if len(terms) == 1 && terms[0] == nil {
198 sq.where, sq.whereArgs = &exql.Where{}, []interface{}{}
199 return nil
200 }
201 return sq.and(sel.SQL(), terms...)
202 })
203}
204
205func (sel *selector) And(terms ...interface{}) db.Selector {
206 return sel.frame(func(sq *selectorQuery) error {

Callers

nothing calls this directly

Calls 3

frameMethod · 0.95
SQLMethod · 0.95
andMethod · 0.45

Tested by

no test coverage detected