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

Method Compare

pkg/util/json/json.go:380–380  ·  view source on GitHub ↗
(other JSON)

Source from the content-addressed store, hash-verified

378func (j jsonNull) Compare(other JSON) (int, error) { return cmpJSONTypes(j.Type(), other.Type()), nil }
379func (j jsonFalse) Compare(other JSON) (int, error) { return cmpJSONTypes(j.Type(), other.Type()), nil }
380func (j jsonTrue) Compare(other JSON) (int, error) { return cmpJSONTypes(j.Type(), other.Type()), nil }
381
382func decodeIfNeeded(j JSON) (JSON, error) {
383 if enc, ok := j.(*jsonEncoded); ok {

Callers 1

slowContainsMethod · 0.95

Calls 3

TypeMethod · 0.95
cmpJSONTypesFunction · 0.85
TypeMethod · 0.65

Tested by

no test coverage detected