MCPcopy
hub / github.com/ent/ent / DotPath

Function DotPath

dialect/sql/sqljson/sqljson.go:426–431  ·  view source on GitHub ↗

DotPath is similar to Path, but accepts string with dot format. ValuePath(b, "column", DotPath("a.b.c")) ValuePath(b, "column", DotPath("a.b[2].c")) Note that DotPath is ignored if the input is invalid.

(dotpath string)

Source from the content-addressed store, hash-verified

424//
425// Note that DotPath is ignored if the input is invalid.
426func DotPath(dotpath string) Option {
427 path, _ := ParsePath(dotpath)
428 return func(p *PathOptions) {
429 p.Path = path
430 }
431}
432
433// Unquote indicates that the result value should be unquoted.
434//

Callers 2

PredicatesFunction · 0.92
TestWritePathFunction · 0.92

Calls 1

ParsePathFunction · 0.85

Tested by 2

PredicatesFunction · 0.74
TestWritePathFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…