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

Function convertWindowFunc

internal/engine/postgresql/convert.go:2912–2929  ·  view source on GitHub ↗
(n *pg.WindowFunc)

Source from the content-addressed store, hash-verified

2910}
2911
2912func convertWindowFunc(n *pg.WindowFunc) *ast.WindowFunc {
2913 if n == nil {
2914 return nil
2915 }
2916 return &ast.WindowFunc{
2917 Xpr: convertNode(n.Xpr),
2918 Winfnoid: ast.Oid(n.Winfnoid),
2919 Wintype: ast.Oid(n.Wintype),
2920 Wincollid: ast.Oid(n.Wincollid),
2921 Inputcollid: ast.Oid(n.Inputcollid),
2922 Args: convertSlice(n.Args),
2923 Aggfilter: convertNode(n.Aggfilter),
2924 Winref: ast.Index(n.Winref),
2925 Winstar: n.Winstar,
2926 Winagg: n.Winagg,
2927 Location: int(n.Location),
2928 }
2929}
2930
2931func convertWithCheckOption(n *pg.WithCheckOption) *ast.WithCheckOption {
2932 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 4

OidTypeAlias · 0.92
IndexTypeAlias · 0.92
convertNodeFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected