MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / RemoveIndex

Method RemoveIndex

pkg/util/json/encoded.go:642–648  ·  view source on GitHub ↗

RemoveIndex implements the JSON interface.

(idx int)

Source from the content-addressed store, hash-verified

640
641// RemoveIndex implements the JSON interface.
642func (j *jsonEncoded) RemoveIndex(idx int) (JSON, bool, error) {
643 decoded, err := j.shallowDecode()
644 if err != nil {
645 return nil, false, err
646 }
647 return decoded.RemoveIndex(idx)
648}
649
650// Concat implements the JSON interface.
651func (j *jsonEncoded) Concat(other JSON) (JSON, error) {

Callers

nothing calls this directly

Calls 2

shallowDecodeMethod · 0.95
RemoveIndexMethod · 0.65

Tested by

no test coverage detected