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

Method Where

statement.go:47–49  ·  view source on GitHub ↗

Where adds WHERE expressions to the query. See SelectBuilder.Where for more information.

(pred interface{}, args ...interface{})

Source from the content-addressed store, hash-verified

45//
46// See SelectBuilder.Where for more information.
47func (b StatementBuilderType) Where(pred interface{}, args ...interface{}) StatementBuilderType {
48 return builder.Append(b, "WhereParts", newWherePart(pred, args...)).(StatementBuilderType)
49}
50
51// StatementBuilder is a parent builder for other builders, e.g. SelectBuilder.
52var StatementBuilder = StatementBuilderType(builder.EmptyBuilder).PlaceholderFormat(Question)

Callers

nothing calls this directly

Calls 1

newWherePartFunction · 0.85

Tested by

no test coverage detected