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

Method Len

postgres/parser/json/json.go:172–172  ·  view source on GitHub ↗

Len returns the number of outermost elements in the JSON document if it is an object or an array. Otherwise, Len returns 0.

()

Source from the content-addressed store, hash-verified

170 // Len returns the number of outermost elements in the JSON document if it is an object or an array.
171 // Otherwise, Len returns 0.
172 Len() int
173
174 // HasContainerLeaf returns whether this document contains in it somewhere
175 // either the empty array or the empty object.

Callers 15

BufferSizeMethod · 0.65
jsonNodeMethod · 0.65
AppendMethod · 0.65
CompareMethod · 0.65
CompareMethod · 0.65
nextRowMethod · 0.65
FinishMethod · 0.65
TestInternalFunction · 0.65
PrintDefaultsFunction · 0.65
nextItemMethod · 0.65
ioInputSectionsFunction · 0.65

Implementers 4

jsonNullpostgres/parser/json/json.go
jsonFalsepostgres/parser/json/json.go
jsonTruepostgres/parser/json/json.go
jsonEncodedpostgres/parser/json/encoded.go

Calls

no outgoing calls

Tested by 5

TestInternalFunction · 0.52
TestIoInputSectionsFunction · 0.52
TestMultipleStatementsFunction · 0.52
TestBoolValSupportFunction · 0.52
TestBitTypeSupportFunction · 0.52