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

Method convertGroupByClause

internal/engine/dolphin/convert.go:1031–1044  ·  view source on GitHub ↗
(n *pcast.GroupByClause)

Source from the content-addressed store, hash-verified

1029}
1030
1031func (c *cc) convertGroupByClause(n *pcast.GroupByClause) *ast.List {
1032 if n == nil {
1033 return &ast.List{}
1034 }
1035
1036 var items []ast.Node
1037 for _, item := range n.Items {
1038 items = append(items, c.convertByItem(item))
1039 }
1040
1041 return &ast.List{
1042 Items: items,
1043 }
1044}
1045
1046func (c *cc) convertHavingClause(n *pcast.HavingClause) ast.Node {
1047 if n == nil {

Callers 2

convertSelectStmtMethod · 0.95
convertMethod · 0.95

Calls 1

convertByItemMethod · 0.95

Tested by

no test coverage detected