MCPcopy
hub / github.com/ent/ent / AppendSelectExpr

Method AppendSelectExpr

dialect/sql/builder.go:1790–1795  ·  view source on GitHub ↗

AppendSelectExpr appends additional expressions to the SELECT statement.

(exprs ...Querier)

Source from the content-addressed store, hash-verified

1788
1789// AppendSelectExpr appends additional expressions to the SELECT statement.
1790func (s *Selector) AppendSelectExpr(exprs ...Querier) *Selector {
1791 for i := range exprs {
1792 s.selection = append(s.selection, selection{x: exprs[i]})
1793 }
1794 return s
1795}
1796
1797// AppendSelectExprAs appends additional expressions to the SELECT statement with the given name.
1798func (s *Selector) AppendSelectExprAs(expr Querier, as string) *Selector {

Callers 1

TestSelector_SelectExprFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestSelector_SelectExprFunction · 0.64