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

Function convertRangeFunction

internal/engine/postgresql/convert.go:2182–2194  ·  view source on GitHub ↗
(n *pg.RangeFunction)

Source from the content-addressed store, hash-verified

2180}
2181
2182func convertRangeFunction(n *pg.RangeFunction) *ast.RangeFunction {
2183 if n == nil {
2184 return nil
2185 }
2186 return &ast.RangeFunction{
2187 Lateral: n.Lateral,
2188 Ordinality: n.Ordinality,
2189 IsRowsfrom: n.IsRowsfrom,
2190 Functions: convertSlice(n.Functions),
2191 Alias: convertAlias(n.Alias),
2192 Coldeflist: convertSlice(n.Coldeflist),
2193 }
2194}
2195
2196func convertRangeSubselect(n *pg.RangeSubselect) *ast.RangeSubselect {
2197 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

convertSliceFunction · 0.85
convertAliasFunction · 0.85

Tested by

no test coverage detected