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

Function NewArrayBuilderWithCounter

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

NewArrayBuilderWithCounter returns an ArrayBuilderWithCounter.

()

Source from the content-addressed store, hash-verified

235
236// NewArrayBuilderWithCounter returns an ArrayBuilderWithCounter.
237func NewArrayBuilderWithCounter() *ArrayBuilderWithCounter {
238 return &ArrayBuilderWithCounter{
239 ab: NewArrayBuilder(0),
240 size: sliceHeaderSize,
241 }
242}
243
244// Add appends JSON to the sequence and updates the size counter.
245func (b *ArrayBuilderWithCounter) Add(j JSON) {

Callers

nothing calls this directly

Calls 1

NewArrayBuilderFunction · 0.85

Tested by

no test coverage detected