MCPcopy
hub / github.com/ent/ent / ValueGTE

Function ValueGTE

dialect/sql/sqljson/sqljson.go:138–144  ·  view source on GitHub ↗

ValueGTE return a predicate for checking that a JSON value (returned by the path) is greater than or equal to the given argument. sqljson.ValueGTE("a", 1, sqljson.Path("b"))

(column string, arg any, opts ...Option)

Source from the content-addressed store, hash-verified

136//
137// sqljson.ValueGTE("a", 1, sqljson.Path("b"))
138func ValueGTE(column string, arg any, opts ...Option) *sql.Predicate {
139 return sql.P(func(b *sql.Builder) {
140 opts = normalizePG(b, arg, opts)
141 valuePath(b, column, opts...)
142 b.WriteOp(sql.OpGTE).Arg(arg)
143 })
144}
145
146// ValueLT return a predicate for checking that a JSON value
147// (returned by the path) is less than the given argument.

Callers 2

PredicatesFunction · 0.92
TestWritePathFunction · 0.92

Calls 5

PStruct · 0.92
normalizePGFunction · 0.85
valuePathFunction · 0.85
ArgMethod · 0.80
WriteOpMethod · 0.80

Tested by 2

PredicatesFunction · 0.74
TestWritePathFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…