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

Function convertWindowDef

internal/engine/postgresql/convert.go:2896–2910  ·  view source on GitHub ↗
(n *pg.WindowDef)

Source from the content-addressed store, hash-verified

2894}
2895
2896func convertWindowDef(n *pg.WindowDef) *ast.WindowDef {
2897 if n == nil {
2898 return nil
2899 }
2900 return &ast.WindowDef{
2901 Name: makeString(n.Name),
2902 Refname: makeString(n.Refname),
2903 PartitionClause: convertSlice(n.PartitionClause),
2904 OrderClause: convertSlice(n.OrderClause),
2905 FrameOptions: int(n.FrameOptions),
2906 StartOffset: convertNode(n.StartOffset),
2907 EndOffset: convertNode(n.EndOffset),
2908 Location: int(n.Location),
2909 }
2910}
2911
2912func convertWindowFunc(n *pg.WindowFunc) *ast.WindowFunc {
2913 if n == nil {

Callers 3

convertCallStmtFunction · 0.85
convertFuncCallFunction · 0.85
convertNodeFunction · 0.85

Calls 3

makeStringFunction · 0.85
convertSliceFunction · 0.85
convertNodeFunction · 0.85

Tested by

no test coverage detected