@uwdata/mosaic-sql
Version:
SQL query construction and analysis.
41 lines • 1.67 kB
TypeScript
import type { FrameExclude, FrameExtent, FrameValue } from '../ast/window-frame.js';
import { WindowFrameExprNode, WindowFrameNode } from '../ast/window-frame.js';
/**
* Return an updated window definition with the given rows frame.
* @param extent The row-based window frame extent.
* @param exclude The window frame exclusion criteria.
* @returns A window frame node.
*/
export declare function frameRows(extent: FrameExtent, exclude?: FrameExclude): WindowFrameNode;
/**
* Return an updated window definition with the given range frame.
* @param extent The range-based window frame extent.
* @param exclude The window frame exclusion criteria.
* @returns A window frame node.
*/
export declare function frameRange(extent: FrameExtent, exclude?: FrameExclude): WindowFrameNode;
/**
* Return an updated window definition with the given groups frame.
* @param extent The group-based window frame extent.
* @param exclude The window frame exclusion criteria.
* @returns A window frame node.
*/
export declare function frameGroups(extent: FrameExtent, exclude?: FrameExclude): WindowFrameNode;
/**
* A `PRECEDING` frame value expression.
* @param value The frame value.
* @returns A preceding value.
*/
export declare function preceding(value: FrameValue): WindowFrameExprNode;
/**
* A `FOLLOWING` frame value expression.
* @param value The frame value.
* @returns A following value.
*/
export declare function following(value: FrameValue): WindowFrameExprNode;
/**
* A `CURRENT ROW` frame value expression.
* @returns A current row value.
*/
export declare function currentRow(): WindowFrameExprNode;
//# sourceMappingURL=window-frame.d.ts.map