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

Method convertIdentifier

internal/engine/clickhouse/convert.go:376–385  ·  view source on GitHub ↗
(n *chast.Identifier)

Source from the content-addressed store, hash-verified

374}
375
376func (c *cc) convertIdentifier(n *chast.Identifier) *ast.ColumnRef {
377 fields := &ast.List{}
378 for _, part := range n.Parts {
379 fields.Items = append(fields.Items, NewIdentifier(part))
380 }
381 return &ast.ColumnRef{
382 Fields: fields,
383 Location: n.Pos().Offset,
384 }
385}
386
387func (c *cc) convertLiteral(n *chast.Literal) *ast.A_Const {
388 switch n.Type {

Callers 2

convertToResTargetMethod · 0.95
convertExprMethod · 0.95

Calls 2

NewIdentifierFunction · 0.70
PosMethod · 0.65

Tested by

no test coverage detected