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

Method AsText

pkg/util/json/encoded.go:542–552  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

540}
541
542func (j *jsonEncoded) AsText() (*string, error) {
543 if dec := j.alreadyDecoded(); dec != nil {
544 return dec.AsText()
545 }
546
547 decoded, err := j.decode()
548 if err != nil {
549 return nil, err
550 }
551 return decoded.AsText()
552}
553
554func (j *jsonEncoded) Compare(other JSON) (int, error) {
555 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