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

Method convertWildCardField

internal/engine/sqlite/convert.go:609–622  ·  view source on GitHub ↗
(n *parser.Result_columnContext)

Source from the content-addressed store, hash-verified

607}
608
609func (c *cc) convertWildCardField(n *parser.Result_columnContext) *ast.ColumnRef {
610 items := []ast.Node{}
611 if n.Table_name() != nil {
612 items = append(items, NewIdentifier(n.Table_name().GetText()))
613 }
614 items = append(items, &ast.A_Star{})
615
616 return &ast.ColumnRef{
617 Fields: &ast.List{
618 Items: items,
619 },
620 Location: n.GetStart().GetStart(),
621 }
622}
623
624func (c *cc) convertOrderby_stmtContext(n parser.IOrder_by_stmtContext) ast.Node {
625 if orderBy, ok := n.(*parser.Order_by_stmtContext); ok {

Callers 1

getColsMethod · 0.95

Calls 4

GetTextMethod · 0.80
GetStartMethod · 0.80
NewIdentifierFunction · 0.70
Table_nameMethod · 0.65

Tested by

no test coverage detected