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

Method Build

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

Build returns the constructed JSON array. A caller may not modify the array, and the ArrayBuilder reserves the right to re-use the array returned (though the data will not be modified). This is important in the case of a window function, which might want to incrementally update an aggregation.

()

Source from the content-addressed store, hash-verified

209// the data will not be modified). This is important in the case of a window
210// function, which might want to incrementally update an aggregation.
211func (b *ArrayBuilder) Build() JSON {
212 return jsonArray(b.jsons)
213}
214
215// ArrayBuilderWithCounter builds JSON Array by a JSON sequence with a size counter.
216type ArrayBuilderWithCounter struct {

Callers 2

RemoveStringMethod · 0.95
BuildMethod · 0.45

Calls 1

jsonArrayTypeAlias · 0.85

Tested by

no test coverage detected