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

Function ValueIn

dialect/sql/sqljson/sqljson.go:237–239  ·  view source on GitHub ↗

ValueIn return a predicate for checking that a JSON value (returned by the path) is IN the given arguments. sqljson.ValueIn("a", []any{1, 2, 3}, sqljson.Path("b"))

(column string, args []any, opts ...Option)

Source from the content-addressed store, hash-verified

235//
236// sqljson.ValueIn("a", []any{1, 2, 3}, sqljson.Path("b"))
237func ValueIn(column string, args []any, opts ...Option) *sql.Predicate {
238 return valueInOp(column, args, opts, sql.OpIn)
239}
240
241// ValueNotIn return a predicate for checking that a JSON value
242// (returned by the path) is NOT IN the given arguments.

Callers 2

PredicatesFunction · 0.92
TestWritePathFunction · 0.92

Calls 1

valueInOpFunction · 0.85

Tested by 2

PredicatesFunction · 0.74
TestWritePathFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…