MCPcopy Index your code
hub / github.com/Masterminds/squirrel / FromSelect

Method FromSelect

select.go:286–290  ·  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

284
285// FromSelect sets a subquery into the FROM clause of the query.
286func (b SelectBuilder) FromSelect(from SelectBuilder, alias string) SelectBuilder {
287 // Prevent misnumbered parameters in nested selects (#183).
288 from = from.PlaceholderFormat(Question)
289 return builder.Set(b, "From", Alias(from, alias)).(SelectBuilder)
290}
291
292// JoinClause adds a join clause to the query.
293func (b SelectBuilder) JoinClause(pred interface{}, args ...interface{}) SelectBuilder {

Callers

nothing calls this directly

Calls 3

AliasFunction · 0.85
SetMethod · 0.80
PlaceholderFormatMethod · 0.45

Tested by

no test coverage detected