MCPcopy
hub / github.com/ent/ent / valuePath

Function valuePath

dialect/sql/sqljson/sqljson.go:507–510  ·  view source on GitHub ↗

valuePath writes to the given SQL builder the JSON path for getting the value of a given JSON path. Use sqljson.ValuePath for using a JSON value as an argument.

(b *sql.Builder, column string, opts ...Option)

Source from the content-addressed store, hash-verified

505// getting the value of a given JSON path.
506// Use sqljson.ValuePath for using a JSON value as an argument.
507func valuePath(b *sql.Builder, column string, opts ...Option) {
508 path := identPath(column, opts...)
509 path.value(b)
510}
511
512// value writes the path for getting the JSON value.
513func (p *PathOptions) value(b *sql.Builder) {

Callers 15

HasKeyFunction · 0.85
ValueIsNullFunction · 0.85
ValueIsNotNullFunction · 0.85
ValueEQFunction · 0.85
ValueNEQFunction · 0.85
ValueGTFunction · 0.85
ValueGTEFunction · 0.85
ValueLTFunction · 0.85
ValueLTEFunction · 0.85
StringHasPrefixFunction · 0.85
StringHasSuffixFunction · 0.85
StringContainsFunction · 0.85

Calls 2

identPathFunction · 0.85
valueMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…