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

Method Format

postgres/parser/json/encoded.go:646–653  ·  view source on GitHub ↗
(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

644}
645
646func (j *jsonEncoded) Format(buf *bytes.Buffer) {
647 decoded, err := j.decode()
648 if err != nil {
649 fmt.Fprintf(buf, `<corrupt JSON data: %s>`, err.Error())
650 } else {
651 decoded.Format(buf)
652 }
653}
654
655// RemoveIndex implements the JSON interface.
656func (j *jsonEncoded) RemoveIndex(idx int) (JSON, bool, error) {

Callers 1

StringMethod · 0.95

Calls 3

decodeMethod · 0.95
FormatMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected