MCPcopy Create free account
hub / github.com/datastax/cql-proxy / Columns

Method Columns

parser/parser.go:44–55  ·  view source on GitHub ↗
(columns []*message.ColumnMetadata, stmt *SelectStatement)

Source from the content-addressed store, hash-verified

42}
43
44func (a AliasSelector) Columns(columns []*message.ColumnMetadata, stmt *SelectStatement) (filtered []*message.ColumnMetadata, err error) {
45 cols, err := a.Selector.Columns(columns, stmt)
46 if err != nil {
47 return
48 }
49 for _, column := range cols {
50 alias := *column // Make a copy so we can modify the name
51 alias.Name = a.Alias
52 filtered = append(filtered, &alias)
53 }
54 return
55}
56
57type IDSelector struct {
58 Name string

Callers

nothing calls this directly

Calls 1

ColumnsMethod · 0.65

Tested by

no test coverage detected