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

Function convertGroupingFunc

internal/engine/postgresql/convert.go:1686–1697  ·  view source on GitHub ↗
(n *pg.GroupingFunc)

Source from the content-addressed store, hash-verified

1684}
1685
1686func convertGroupingFunc(n *pg.GroupingFunc) *ast.GroupingFunc {
1687 if n == nil {
1688 return nil
1689 }
1690 return &ast.GroupingFunc{
1691 Xpr: convertNode(n.Xpr),
1692 Args: convertSlice(n.Args),
1693 Refs: convertSlice(n.Refs),
1694 Agglevelsup: ast.Index(n.Agglevelsup),
1695 Location: int(n.Location),
1696 }
1697}
1698
1699func convertGroupingSet(n *pg.GroupingSet) *ast.GroupingSet {
1700 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

IndexTypeAlias · 0.92
convertNodeFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected