MCPcopy Create free account
hub / github.com/upper/db / and

Method and

internal/sqlbuilder/update.go:26–36  ·  view source on GitHub ↗
(b *sqlBuilder, terms ...interface{})

Source from the content-addressed store, hash-verified

24}
25
26func (uq *updaterQuery) and(b *sqlBuilder, terms ...interface{}) error {
27 where, whereArgs := b.t.toWhereWithArguments(terms)
28
29 if uq.where == nil {
30 uq.where, uq.whereArgs = &exql.Where{}, []interface{}{}
31 }
32 uq.where.Append(&where)
33 uq.whereArgs = append(uq.whereArgs, whereArgs...)
34
35 return nil
36}
37
38func (uq *updaterQuery) statement() *exql.Statement {
39 stmt := &exql.Statement{

Callers 2

WhereMethod · 0.45
AndMethod · 0.45

Calls 2

toWhereWithArgumentsMethod · 0.80
AppendMethod · 0.45

Tested by

no test coverage detected