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

Method isScalar

pkg/util/json/json.go:209–209  ·  view source on GitHub ↗

isScalar returns whether the JSON document is null, true, false, a string, or a number.

()

Source from the content-addressed store, hash-verified

207 // isScalar returns whether the JSON document is null, true, false, a string,
208 // or a number.
209 isScalar() bool
210
211 // preprocessForContains converts a JSON document to an internal interface
212 // which is used to efficiently implement the @> operator.

Callers 5

ContainsFunction · 0.65
slowContainsFunction · 0.65
subdocumentMethod · 0.65
DeepSetFunction · 0.65
DeepInsertFunction · 0.65

Implementers 4

jsonNullpkg/util/json/json.go
jsonFalsepkg/util/json/json.go
jsonTruepkg/util/json/json.go
jsonEncodedpkg/util/json/encoded.go

Calls

no outgoing calls

Tested by

no test coverage detected