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

Function paramName

internal/codegen/golang/result.go:163–168  ·  view source on GitHub ↗
(p *plugin.Parameter)

Source from the content-addressed store, hash-verified

161}
162
163func paramName(p *plugin.Parameter) string {
164 if p.Column.Name != "" {
165 return argName(p.Column.Name)
166 }
167 return fmt.Sprintf("dollar_%d", p.Number)
168}
169
170func argName(name string) string {
171 out := ""

Callers 1

buildQueriesFunction · 0.85

Calls 1

argNameFunction · 0.85

Tested by

no test coverage detected