MCPcopy
hub / github.com/ent/ent / identPath

Function identPath

dialect/sql/sqljson/sqljson.go:460–466  ·  view source on GitHub ↗

identPath creates a PathOptions for the given identifier.

(ident string, opts ...Option)

Source from the content-addressed store, hash-verified

458
459// identPath creates a PathOptions for the given identifier.
460func identPath(ident string, opts ...Option) *PathOptions {
461 path := &PathOptions{Ident: ident}
462 for i := range opts {
463 opts[i](path)
464 }
465 return path
466}
467
468func (p *PathOptions) Query() (string, []any) {
469 return p.Ident, nil

Callers 9

HasKeyFunction · 0.85
ValueIsNullFunction · 0.85
ValueIsNotNullFunction · 0.85
ValueContainsFunction · 0.85
lenPathFunction · 0.85
valuePathFunction · 0.85
AppendMethod · 0.85
AppendMethod · 0.85
AppendMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…