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

Function stringSlice

internal/engine/postgresql/parse.go:17–25  ·  view source on GitHub ↗
(list *nodes.List)

Source from the content-addressed store, hash-verified

15)
16
17func stringSlice(list *nodes.List) []string {
18 items := []string{}
19 for _, item := range list.Items {
20 if n, ok := item.Node.(*nodes.Node_String_); ok {
21 items = append(items, n.String_.Sval)
22 }
23 }
24 return items
25}
26
27func stringSliceFromNodes(s []*nodes.Node) []string {
28 var items []string

Callers 1

parseColNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected