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

Function stringSliceFromNodes

internal/engine/postgresql/parse.go:27–35  ·  view source on GitHub ↗
(s []*nodes.Node)

Source from the content-addressed store, hash-verified

25}
26
27func stringSliceFromNodes(s []*nodes.Node) []string {
28 var items []string
29 for _, item := range s {
30 if n, ok := item.Node.(*nodes.Node_String_); ok {
31 items = append(items, n.String_.Sval)
32 }
33 }
34 return items
35}
36
37type relation struct {
38 Catalog string

Callers 2

parseRelationFromNodesFunction · 0.85
joinNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected