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

Function SelectExpr

dialect/sql/builder.go:1739–1741  ·  view source on GitHub ↗

SelectExpr is like Select, but supports passing arbitrary expressions for SELECT clause.

(exprs ...Querier)

Source from the content-addressed store, hash-verified

1737// SelectExpr is like Select, but supports passing arbitrary
1738// expressions for SELECT clause.
1739func SelectExpr(exprs ...Querier) *Selector {
1740 return (&Selector{}).SelectExpr(exprs...)
1741}
1742
1743// selection represents a column or an expression selection.
1744type selection struct {

Callers 4

SelectFunction · 0.92
TestBuilderFunction · 0.85
TestSelector_SelectExprFunction · 0.85
SelectExprMethod · 0.85

Calls 1

SelectExprMethod · 0.45

Tested by 3

SelectFunction · 0.74
TestBuilderFunction · 0.68
TestSelector_SelectExprFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…