MCPcopy Create free account
hub / github.com/bytebase/bytebase / formatKVPair

Function formatKVPair

backend/plugin/db/hive/dump.go:354–365  ·  view source on GitHub ↗
(builder *strings.Builder, kvMap map[string]string)

Source from the content-addressed store, hash-verified

352}
353
354func formatKVPair(builder *strings.Builder, kvMap map[string]string) {
355 _, _ = builder.WriteString("(\n")
356 count := 0
357 for key, value := range kvMap {
358 count++
359 _, _ = fmt.Fprintf(builder, " '%s' = '%s'", key, value)
360 if count != len(kvMap) {
361 _, _ = builder.WriteString(",\n")
362 }
363 }
364 _, _ = builder.WriteString(")\n")
365}

Callers 2

genIndexDDLFunction · 0.85
genMaterializedViewDDLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected