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

Method convertColumnNames

internal/engine/sqlite/convert.go:1037–1046  ·  view source on GitHub ↗
(cols []parser.IColumn_nameContext)

Source from the content-addressed store, hash-verified

1035}
1036
1037func (c *cc) convertColumnNames(cols []parser.IColumn_nameContext) *ast.List {
1038 list := &ast.List{Items: []ast.Node{}}
1039 for _, c := range cols {
1040 name := identifier(c.GetText())
1041 list.Items = append(list.Items, &ast.ResTarget{
1042 Name: &name,
1043 })
1044 }
1045 return list
1046}
1047
1048func (c *cc) convertTablesOrSubquery(n []parser.ITable_or_subqueryContext) []ast.Node {
1049 var tables []ast.Node

Callers 1

Calls 2

GetTextMethod · 0.80
identifierFunction · 0.70

Tested by

no test coverage detected