windowFrameSQL renders a window frame clause.
(f *ast.WindowFrame)
| 1364 | |
| 1365 | // windowFrameSQL renders a window frame clause. |
| 1366 | func 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. |
| 1374 | func fetchSQL(fc *ast.FetchClause, f *nodeFormatter) string { |