MCPcopy
hub / github.com/ent/ent / FieldGT

Function FieldGT

dialect/sql/sql.go:61–65  ·  view source on GitHub ↗

FieldGT returns a raw predicate to check if the given field is greater than the given value.

(name string, v any)

Source from the content-addressed store, hash-verified

59
60// FieldGT returns a raw predicate to check if the given field is greater than the given value.
61func FieldGT(name string, v any) func(*Selector) {
62 return func(s *Selector) {
63 s.Where(GT(s.C(name), v))
64 }
65}
66
67// FieldsGT returns a raw predicate to check if field1 is greater than field2.
68func FieldsGT(field1, field2 string) func(*Selector) {

Callers 15

IDGTFunction · 0.92
OidGTFunction · 0.92
IDGTFunction · 0.92
SourceGTFunction · 0.92
SourceURIGTFunction · 0.92
TextGTFunction · 0.92
IDGTFunction · 0.92
MixedStringGTFunction · 0.92
AgeGTFunction · 0.92
NameGTFunction · 0.92
DescriptionGTFunction · 0.92
NicknameGTFunction · 0.92

Calls 3

GTFunction · 0.70
WhereMethod · 0.65
CMethod · 0.65

Tested by 1

TestFieldGTFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…