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

Method StringMap

utils/writer.go:279–286  ·  view source on GitHub ↗

StringMap writes a map of strings, keyed by strings.

(m map[string]string)

Source from the content-addressed store, hash-verified

277
278// StringMap writes a map of strings, keyed by strings.
279func (writer *Writer) StringMap(m map[string]string) {
280 writer.VariableUint(uint64(len(m)))
281 // We iterate over the sorted set of keys for determinism
282 for _, k := range slices.Sorted(maps.Keys(m)) {
283 writer.String(k)
284 writer.String(m[k])
285 }
286}
287
288// IdSlice writes a slice of internal IDs.
289func (writer *Writer) IdSlice(vals []id.Id) {

Callers 3

SerializeMethod · 0.95
SerializeMethod · 0.95
SerializeMethod · 0.95

Calls 3

VariableUintMethod · 0.95
StringMethod · 0.95
SortedMethod · 0.80

Tested by

no test coverage detected