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

Function convertWindowClause

internal/engine/postgresql/convert.go:2879–2894  ·  view source on GitHub ↗
(n *pg.WindowClause)

Source from the content-addressed store, hash-verified

2877}
2878
2879func convertWindowClause(n *pg.WindowClause) *ast.WindowClause {
2880 if n == nil {
2881 return nil
2882 }
2883 return &ast.WindowClause{
2884 Name: makeString(n.Name),
2885 Refname: makeString(n.Refname),
2886 PartitionClause: convertSlice(n.PartitionClause),
2887 OrderClause: convertSlice(n.OrderClause),
2888 FrameOptions: int(n.FrameOptions),
2889 StartOffset: convertNode(n.StartOffset),
2890 EndOffset: convertNode(n.EndOffset),
2891 Winref: ast.Index(n.Winref),
2892 CopiedOrder: n.CopiedOrder,
2893 }
2894}
2895
2896func convertWindowDef(n *pg.WindowDef) *ast.WindowDef {
2897 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 4

IndexTypeAlias · 0.92
makeStringFunction · 0.85
convertSliceFunction · 0.85
convertNodeFunction · 0.85

Tested by

no test coverage detected