FieldGT returns a raw predicate to check if the given field is greater than the given value.
(name string, v any)
| 59 | |
| 60 | // FieldGT returns a raw predicate to check if the given field is greater than the given value. |
| 61 | func 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. |
| 68 | func FieldsGT(field1, field2 string) func(*Selector) { |
searching dependent graphs…