MCPcopy
hub / github.com/sqlc-dev/sqlc / Join

Function Join

internal/sql/astutils/join.go:9–21  ·  view source on GitHub ↗
(list *ast.List, sep string)

Source from the content-addressed store, hash-verified

7)
8
9func Join(list *ast.List, sep string) string {
10 if list == nil {
11 return ""
12 }
13
14 var items []string
15 for _, item := range list.Items {
16 if n, ok := item.(*ast.String); ok {
17 items = append(items, n.Str)
18 }
19 }
20 return strings.Join(items, sep)
21}

Callers 8

isNamedParamSignCastFunction · 0.92
IsParamSignFunction · 0.92
outputColumnsMethod · 0.92
toColumnFunction · 0.92
expandStmtMethod · 0.92
parseRelationFunction · 0.92
resolveCatalogRefsMethod · 0.92
TestApplyFunction · 0.92

Calls 1

JoinMethod · 0.45

Tested by 1

TestApplyFunction · 0.74