MCPcopy
hub / github.com/ent/ent / Path

Function Path

dialect/sql/sqljson/sqljson.go:414–418  ·  view source on GitHub ↗

Path sets the path to the JSON value of a column. ValuePath(b, "column", Path("a", "b", "[1]", "c"))

(path ...string)

Source from the content-addressed store, hash-verified

412//
413// ValuePath(b, "column", Path("a", "b", "[1]", "c"))
414func Path(path ...string) Option {
415 return func(p *PathOptions) {
416 p.Path = path
417 }
418}
419
420// DotPath is similar to Path, but accepts string with dot format.
421//

Callers 5

StringsFunction · 0.92
PredicatesFunction · 0.92
OrderFunction · 0.92
TestWritePathFunction · 0.92
TestAppendFunction · 0.92

Calls

no outgoing calls

Tested by 5

StringsFunction · 0.74
PredicatesFunction · 0.74
OrderFunction · 0.74
TestWritePathFunction · 0.74
TestAppendFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…