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

Method convertParameter

internal/engine/clickhouse/convert.go:520–531  ·  view source on GitHub ↗
(n *chast.Parameter)

Source from the content-addressed store, hash-verified

518}
519
520func (c *cc) convertParameter(n *chast.Parameter) ast.Node {
521 c.paramCount++
522 // Use the parameter name if available
523 name := n.Name
524 if name == "" {
525 name = strconv.Itoa(c.paramCount)
526 }
527 return &ast.ParamRef{
528 Number: c.paramCount,
529 Location: n.Pos().Offset,
530 }
531}
532
533func (c *cc) convertAsterisk(n *chast.Asterisk) *ast.ColumnRef {
534 fields := &ast.List{}

Callers 1

convertExprMethod · 0.95

Calls 1

PosMethod · 0.65

Tested by

no test coverage detected