MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / stringSlice

Function stringSlice

internal/compiler/compat.go:12–20  ·  view source on GitHub ↗

This is mainly copy-pasted from internal/postgresql/parse.go

(list *ast.List)

Source from the content-addressed store, hash-verified

10
11// This is mainly copy-pasted from internal/postgresql/parse.go
12func stringSlice(list *ast.List) []string {
13 items := []string{}
14 for _, item := range list.Items {
15 if n, ok := item.(*ast.String); ok {
16 items = append(items, n.Str)
17 }
18 }
19 return items
20}
21
22type Relation struct {
23 Catalog string

Callers 4

outputColumnRefsFunction · 0.70
findColumnForRefFunction · 0.70
parseRelationFunction · 0.70
resolveCatalogRefsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected