MCPcopy
hub / github.com/ent/ent / Expr

Function Expr

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

Expr returns an SQL expression that implements the Querier interface.

(exr string, args ...any)

Source from the content-addressed store, hash-verified

2901
2902// Expr returns an SQL expression that implements the Querier interface.
2903func Expr(exr string, args ...any) Querier { return &expr{s: exr, args: args} }
2904
2905type expr struct {
2906 s string

Callers 15

SelectFunction · 0.92
TestUpdateNodeFunction · 0.92
TestUpdateNodesFunction · 0.92
ensureLastInsertIDMethod · 0.92
TestBuilderFunction · 0.70
TestSelector_OrderByExprFunction · 0.70
TestSelector_SelectExprFunction · 0.70
TestInsert_OnConflictFunction · 0.70
TestWindowFunctionFunction · 0.70

Calls

no outgoing calls

Tested by 12

SelectFunction · 0.74
TestUpdateNodeFunction · 0.74
TestUpdateNodesFunction · 0.74
TestBuilderFunction · 0.56
TestSelector_OrderByExprFunction · 0.56
TestSelector_SelectExprFunction · 0.56
TestInsert_OnConflictFunction · 0.56
TestWindowFunctionFunction · 0.56
TestMultipleFromFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…