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

Method Set

update.go:225–227  ·  view source on GitHub ↗

Set adds SET clauses to the query.

(column string, value interface{})

Source from the content-addressed store, hash-verified

223
224// Set adds SET clauses to the query.
225func (b UpdateBuilder) Set(column string, value interface{}) UpdateBuilder {
226 return builder.Append(b, "SetClauses", setClause{column: column, value: value}).(UpdateBuilder)
227}
228
229// SetMap is a convenience method which calls .Set for each key/value pair in clauses.
230func (b UpdateBuilder) SetMap(clauses map[string]interface{}) UpdateBuilder {

Callers 15

SetMapMethod · 0.95
PlaceholderFormatMethod · 0.80
PlaceholderFormatMethod · 0.80
TableMethod · 0.80
FromMethod · 0.80
FromSelectMethod · 0.80
LimitMethod · 0.80
OffsetMethod · 0.80
PlaceholderFormatMethod · 0.80
FromMethod · 0.80
LimitMethod · 0.80
OffsetMethod · 0.80

Calls

no outgoing calls

Tested by 8

TestUpdateBuilderToSqlFunction · 0.64
TestUpdateBuilderRunnersFunction · 0.64
TestUpdateBuilderFromFunction · 0.64