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

Method AsText

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

Source from the content-addressed store, hash-verified

543}
544
545func (j *jsonEncoded) AsText() (*string, error) {
546 if dec := j.alreadyDecoded(); dec != nil {
547 return dec.AsText()
548 }
549
550 decoded, err := j.decode()
551 if err != nil {
552 return nil, err
553 }
554 return decoded.AsText()
555}
556
557func (j *jsonEncoded) AsDecimal() (*apd.Decimal, bool) {
558 if dec := j.alreadyDecoded(); dec != nil {

Callers

nothing calls this directly

Calls 3

alreadyDecodedMethod · 0.95
decodeMethod · 0.95
AsTextMethod · 0.65

Tested by

no test coverage detected