MCPcopy Create free account
hub / github.com/dolthub/doltgresql / FetchValIdx

Method FetchValIdx

postgres/parser/json/json.go:108–108  ·  view source on GitHub ↗

FetchValIdx implements the `->` operator for ints, returning nil if the key is not found.

(idx int)

Source from the content-addressed store, hash-verified

106 // FetchValIdx implements the `->` operator for ints, returning nil if the
107 // key is not found.
108 FetchValIdx(idx int) (JSON, error)
109
110 // FetchValKeyOrIdx is used for path access, if obj is an object, it tries to
111 // access the given field. If it's an array, it interprets the key as an int

Callers 2

jsonNodeMethod · 0.65
FetchValIdxMethod · 0.65

Implementers 4

jsonNullpostgres/parser/json/json.go
jsonFalsepostgres/parser/json/json.go
jsonTruepostgres/parser/json/json.go
jsonEncodedpostgres/parser/json/encoded.go

Calls

no outgoing calls

Tested by

no test coverage detected