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

Method RemovePath

postgres/parser/json/json.go:1774–1774  ·  view source on GitHub ↗
(path []string)

Source from the content-addressed store, hash-verified

1772var errCannotDeletePathInScalar = pgerror.WithCandidateCode(errors.New("cannot delete path in scalar"), pgcode.InvalidParameterValue)
1773
1774func (j jsonArray) RemovePath(path []string) (JSON, bool, error) { return j.doRemovePath(path) }
1775func (j jsonObject) RemovePath(path []string) (JSON, bool, error) { return j.doRemovePath(path) }
1776func (jsonNull) RemovePath([]string) (JSON, bool, error) {
1777 return nil, false, errCannotDeletePathInScalar

Callers

nothing calls this directly

Calls 1

doRemovePathMethod · 0.95

Tested by

no test coverage detected