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

Method AsText

postgres/parser/json/encoded.go:556–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

554}
555
556func (j *jsonEncoded) AsText() (*string, error) {
557 if dec := j.alreadyDecoded(); dec != nil {
558 return dec.AsText()
559 }
560
561 decoded, err := j.decode()
562 if err != nil {
563 return nil, err
564 }
565 return decoded.AsText()
566}
567
568func (j *jsonEncoded) Compare(other JSON) (int, error) {
569 if cmp := cmpJSONTypes(j.Type(), other.Type()); cmp != 0 {

Callers

nothing calls this directly

Calls 3

alreadyDecodedMethod · 0.95
decodeMethod · 0.95
AsTextMethod · 0.65

Tested by

no test coverage detected