MCPcopy
hub / github.com/Masterminds/squirrel / newWherePart

Function newWherePart

where.go:9–11  ·  view source on GitHub ↗
(pred interface{}, args ...interface{})

Source from the content-addressed store, hash-verified

7type wherePart part
8
9func newWherePart(pred interface{}, args ...interface{}) Sqlizer {
10 return &wherePart{pred: pred, args: args}
11}
12
13func (p wherePart) ToSql() (sql string, args []interface{}, err error) {
14 switch pred := p.pred.(type) {

Callers 11

TestWherePartNilFunction · 0.85
TestWherePartErrFunction · 0.85
TestWherePartStringFunction · 0.85
TestWherePartMapFunction · 0.85
WhereMethod · 0.85
WhereMethod · 0.85
WhereMethod · 0.85
WhereMethod · 0.85
HavingMethod · 0.85

Calls

no outgoing calls

Tested by 6

TestWherePartNilFunction · 0.68
TestWherePartErrFunction · 0.68
TestWherePartStringFunction · 0.68
TestWherePartMapFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…