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

Method convertAsterisk

internal/engine/clickhouse/convert.go:533–543  ·  view source on GitHub ↗
(n *chast.Asterisk)

Source from the content-addressed store, hash-verified

531}
532
533func (c *cc) convertAsterisk(n *chast.Asterisk) *ast.ColumnRef {
534 fields := &ast.List{}
535 if n.Table != "" {
536 fields.Items = append(fields.Items, NewIdentifier(n.Table))
537 }
538 fields.Items = append(fields.Items, &ast.A_Star{})
539 return &ast.ColumnRef{
540 Fields: fields,
541 Location: n.Pos().Offset,
542 }
543}
544
545func (c *cc) convertCaseExpr(n *chast.CaseExpr) *ast.CaseExpr {
546 ce := &ast.CaseExpr{

Callers 1

convertExprMethod · 0.95

Calls 2

NewIdentifierFunction · 0.70
PosMethod · 0.65

Tested by

no test coverage detected