MCPcopy Index your code
hub / github.com/ent/ent / SelectExpr

Method SelectExpr

dialect/sql/builder.go:1781–1787  ·  view source on GitHub ↗

SelectExpr changes the columns selection of the SELECT statement with custom list of expressions.

(exprs ...Querier)

Source from the content-addressed store, hash-verified

1779// SelectExpr changes the columns selection of the SELECT statement
1780// with custom list of expressions.
1781func (s *Selector) SelectExpr(exprs ...Querier) *Selector {
1782 s.selection = make([]selection, len(exprs))
1783 for i := range exprs {
1784 s.selection[i] = selection{x: exprs[i]}
1785 }
1786 return s
1787}
1788
1789// AppendSelectExpr appends additional expressions to the SELECT statement.
1790func (s *Selector) AppendSelectExpr(exprs ...Querier) *Selector {

Callers 3

SelectFunction · 0.45
SelectExprFunction · 0.45
ensureExistsMethod · 0.45

Calls

no outgoing calls

Tested by 1

SelectFunction · 0.36