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

Method convertColumnNames

internal/engine/dolphin/convert.go:319–328  ·  view source on GitHub ↗
(cols []*pcast.ColumnName)

Source from the content-addressed store, hash-verified

317}
318
319func (c *cc) convertColumnNames(cols []*pcast.ColumnName) *ast.List {
320 list := &ast.List{Items: []ast.Node{}}
321 for i := range cols {
322 name := identifier(cols[i].Name.String())
323 list.Items = append(list.Items, &ast.ResTarget{
324 Name: &name,
325 })
326 }
327 return list
328}
329
330func (c *cc) convertDeleteStmt(n *pcast.DeleteStmt) *ast.DeleteStmt {
331 stmt := &ast.DeleteStmt{

Callers 1

convertInsertStmtMethod · 0.95

Calls 2

identifierFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected