FieldEQ returns a raw predicate to check if the given field equals to the given value.
(name string, v any)
| 31 | |
| 32 | // FieldEQ returns a raw predicate to check if the given field equals to the given value. |
| 33 | func FieldEQ(name string, v any) func(*Selector) { |
| 34 | return func(s *Selector) { |
| 35 | s.Where(EQ(s.C(name), v)) |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // FieldsEQ returns a raw predicate to check if the given fields (columns) are equal. |
| 40 | func FieldsEQ(field1, field2 string) func(*Selector) { |
searching dependent graphs…