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

Method Compare

postgres/parser/json/json.go:430–430  ·  view source on GitHub ↗
(other JSON)

Source from the content-addressed store, hash-verified

428func (j jsonNull) Compare(other JSON) (int, error) { return cmpJSONTypes(j.Type(), other.Type()), nil }
429func (j jsonFalse) Compare(other JSON) (int, error) { return cmpJSONTypes(j.Type(), other.Type()), nil }
430func (j jsonTrue) Compare(other JSON) (int, error) { return cmpJSONTypes(j.Type(), other.Type()), nil }
431
432func decodeIfNeeded(j JSON) (JSON, error) {
433 if enc, ok := j.(*jsonEncoded); ok {

Callers

nothing calls this directly

Calls 3

TypeMethod · 0.95
cmpJSONTypesFunction · 0.85
TypeMethod · 0.65

Tested by

no test coverage detected