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

Function convertSortGroupClause

internal/engine/postgresql/convert.go:2602–2613  ·  view source on GitHub ↗
(n *pg.SortGroupClause)

Source from the content-addressed store, hash-verified

2600}
2601
2602func convertSortGroupClause(n *pg.SortGroupClause) *ast.SortGroupClause {
2603 if n == nil {
2604 return nil
2605 }
2606 return &ast.SortGroupClause{
2607 TleSortGroupRef: ast.Index(n.TleSortGroupRef),
2608 Eqop: ast.Oid(n.Eqop),
2609 Sortop: ast.Oid(n.Sortop),
2610 NullsFirst: n.NullsFirst,
2611 Hashable: n.Hashable,
2612 }
2613}
2614
2615func convertString(n *pg.String) *ast.String {
2616 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

IndexTypeAlias · 0.92
OidTypeAlias · 0.92

Tested by

no test coverage detected