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

Function columnName

internal/codegen/golang/result.go:156–161  ·  view source on GitHub ↗
(c *plugin.Column, pos int)

Source from the content-addressed store, hash-verified

154}
155
156func columnName(c *plugin.Column, pos int) string {
157 if c.Name != "" {
158 return c.Name
159 }
160 return fmt.Sprintf("column_%d", pos+1)
161}
162
163func paramName(p *plugin.Parameter) string {
164 if p.Column.Name != "" {

Callers 2

buildQueriesFunction · 0.85
columnsToStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected