MCPcopy Create free account
hub / github.com/temporalio/temporal / appendPrefix

Function appendPrefix

common/persistence/sql/sqlplugin/util.go:7–13  ·  view source on GitHub ↗
(prefix string, fields []string)

Source from the content-addressed store, hash-verified

5)
6
7func appendPrefix(prefix string, fields []string) []string {
8 out := make([]string, len(fields))
9 for i, field := range fields {
10 out[i] = prefix + field
11 }
12 return out
13}
14
15func BuildNamedPlaceholder(fields ...string) string {
16 return strings.Join(appendPrefix(":", fields), ", ")

Callers 1

BuildNamedPlaceholderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected