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

Method convertWildCardField

internal/engine/dolphin/convert.go:721–733  ·  view source on GitHub ↗
(n *pcast.WildCardField)

Source from the content-addressed store, hash-verified

719}
720
721func (c *cc) convertWildCardField(n *pcast.WildCardField) *ast.ColumnRef {
722 items := []ast.Node{}
723 if t := n.Table.String(); t != "" {
724 items = append(items, NewIdentifier(t))
725 }
726 items = append(items, &ast.A_Star{})
727
728 return &ast.ColumnRef{
729 Fields: &ast.List{
730 Items: items,
731 },
732 }
733}
734
735func (c *cc) convertAdminStmt(n *pcast.AdminStmt) ast.Node {
736 return todo(n)

Callers 2

convertSelectFieldMethod · 0.95
convertMethod · 0.95

Calls 2

NewIdentifierFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected