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

Function FieldLT

dialect/sql/sql.go:89–93  ·  view source on GitHub ↗

FieldLT returns a raw predicate to check if the value of the field is less than the given value.

(name string, v any)

Source from the content-addressed store, hash-verified

87
88// FieldLT returns a raw predicate to check if the value of the field is less than the given value.
89func FieldLT(name string, v any) func(*Selector) {
90 return func(s *Selector) {
91 s.Where(LT(s.C(name), v))
92 }
93}
94
95// FieldsLT returns a raw predicate to check if field1 is lower than field2.
96func FieldsLT(field1, field2 string) func(*Selector) {

Callers 15

IDLTFunction · 0.92
OidLTFunction · 0.92
IDLTFunction · 0.92
SourceLTFunction · 0.92
SourceURILTFunction · 0.92
TextLTFunction · 0.92
IDLTFunction · 0.92
MixedStringLTFunction · 0.92
AgeLTFunction · 0.92
NameLTFunction · 0.92
DescriptionLTFunction · 0.92
NicknameLTFunction · 0.92

Calls 3

LTFunction · 0.70
WhereMethod · 0.65
CMethod · 0.65

Tested by 1

TestFieldLTFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…