MCPcopy
hub / github.com/ent/ent / P

Function P

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

P creates a new predicate. P().EQ("name", "a8m").And().EQ("age", 30)

(fns ...func(*Builder))

Source from the content-addressed store, hash-verified

758//
759// P().EQ("name", "a8m").And().EQ("age", 30)
760func P(fns ...func(*Builder)) *Predicate {
761 return &Predicate{fns: fns}
762}
763
764// ExprP creates a new predicate from the given expression.
765//

Callers 15

TestBuilderFunction · 0.70
TestBuilder_ErrFunction · 0.70
TestMultipleFromFunction · 0.70
ExprPFunction · 0.70
OrFunction · 0.70
FalseFunction · 0.70
NotFunction · 0.70
ColumnsOpFunction · 0.70
AndFunction · 0.70
IsTrueFunction · 0.70
IsFalseFunction · 0.70

Calls

no outgoing calls

Tested by 4

TestBuilderFunction · 0.56
TestBuilder_ErrFunction · 0.56
TestMultipleFromFunction · 0.56