MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / windowFrameSQL

Function windowFrameSQL

pkg/formatter/render.go:1366–1371  ·  view source on GitHub ↗

windowFrameSQL renders a window frame clause.

(f *ast.WindowFrame)

Source from the content-addressed store, hash-verified

1364
1365// windowFrameSQL renders a window frame clause.
1366func windowFrameSQL(f *ast.WindowFrame) string {
1367 if f.End != nil {
1368 return fmt.Sprintf("%s BETWEEN %s AND %s", f.Type, f.Start.Type, f.End.Type)
1369 }
1370 return fmt.Sprintf("%s %s", f.Type, f.Start.Type)
1371}
1372
1373// fetchSQL renders a FETCH clause, respecting keyword casing from the nodeFormatter.
1374func fetchSQL(fc *ast.FetchClause, f *nodeFormatter) string {

Callers 1

windowSpecSQLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected