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

Function ValueLT

dialect/sql/sqljson/sqljson.go:150–156  ·  view source on GitHub ↗

ValueLT return a predicate for checking that a JSON value (returned by the path) is less than the given argument. sqljson.ValueLT("a", 1, sqljson.Path("b"))

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

Source from the content-addressed store, hash-verified

148//
149// sqljson.ValueLT("a", 1, sqljson.Path("b"))
150func ValueLT(column string, arg any, opts ...Option) *sql.Predicate {
151 return sql.P(func(b *sql.Builder) {
152 opts = normalizePG(b, arg, opts)
153 valuePath(b, column, opts...)
154 b.WriteOp(sql.OpLT).Arg(arg)
155 })
156}
157
158// ValueLTE return a predicate for checking that a JSON value
159// (returned by the path) is less than or equal to the given

Callers 1

TestWritePathFunction · 0.92

Calls 5

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

Tested by 1

TestWritePathFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…