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

Method FromSelect

update.go:252–256  ·  view source on GitHub ↗

FromSelect sets a subquery into the FROM clause of the query.

(from SelectBuilder, alias string)

Source from the content-addressed store, hash-verified

250
251// FromSelect sets a subquery into the FROM clause of the query.
252func (b UpdateBuilder) FromSelect(from SelectBuilder, alias string) UpdateBuilder {
253 // Prevent misnumbered parameters in nested selects (#183).
254 from = from.PlaceholderFormat(Question)
255 return builder.Set(b, "From", Alias(from, alias)).(UpdateBuilder)
256}
257
258// Where adds WHERE expressions to the query.
259//

Calls 3

AliasFunction · 0.85
SetMethod · 0.80
PlaceholderFormatMethod · 0.45