MCPcopy
hub / github.com/ent/ent / EQ

Function EQ

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

EQ returns a "=" predicate.

(col string, value any)

Source from the content-addressed store, hash-verified

860
861// EQ returns a "=" predicate.
862func EQ(col string, value any) *Predicate {
863 return P().EQ(col, value)
864}
865
866// EQ appends a "=" predicate.
867func (p *Predicate) EQ(col string, arg any) *Predicate {

Callers 15

UpsertFunction · 0.92
SelectFunction · 0.92
TestSchemaConfigFunction · 0.92
TestWritePathFunction · 0.92
tableExistMethod · 0.92
tableExistMethod · 0.92
matchSchemaMethod · 0.92
tableExistMethod · 0.92
matchSchemaMethod · 0.92
TestWriteDriverFunction · 0.92
TestSetNeighborsFunction · 0.92

Calls 2

EQMethod · 0.80
PFunction · 0.70

Tested by 15

UpsertFunction · 0.74
SelectFunction · 0.74
TestSchemaConfigFunction · 0.74
TestWritePathFunction · 0.74
TestWriteDriverFunction · 0.74
TestSetNeighborsFunction · 0.74
TestHasNeighborsWithFunction · 0.74
TestUpdateNodeFunction · 0.74
TestUpdateNodesFunction · 0.74
TestGraph_EvalPFunction · 0.74
TestBuilderFunction · 0.56