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

Method Add

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

Add appends key value pair to the sequence.

(k string, v JSON)

Source from the content-addressed store, hash-verified

309
310// Add appends key value pair to the sequence.
311func (b *ObjectBuilder) Add(k string, v JSON) {
312 if b.pairs == nil {
313 panic(errors.AssertionFailedf(msgModifyAfterBuild))
314 }
315 b.pairs = append(b.pairs, jsonKeyValuePair{k: jsonString(k), v: v})
316}
317
318// Build returns a JSON object built from a key value pair sequence. After that,
319// it should not be modified any longer.

Callers

nothing calls this directly

Calls 1

jsonStringTypeAlias · 0.85

Tested by

no test coverage detected