Struct sql_parser::ast::WindowFrame [−][src]
pub struct WindowFrame {
pub units: WindowFrameUnits,
pub start_bound: WindowFrameBound,
pub end_bound: Option<WindowFrameBound>,
}
Expand description
Specifies the data processed by a window function, e.g.
RANGE UNBOUNDED PRECEDING
or ROWS BETWEEN 5 PRECEDING AND CURRENT ROW
.
Note: The parser does not validate the specified bounds; the caller should
reject invalid bounds like ROWS UNBOUNDED FOLLOWING
before execution.
Fields
units: WindowFrameUnits
start_bound: WindowFrameBound
end_bound: Option<WindowFrameBound>
The right bound of the BETWEEN .. AND
clause. The end bound of None
indicates the shorthand form (e.g. ROWS 1 PRECEDING
), which must
behave the same as end_bound = WindowFrameBound::CurrentRow
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WindowFrame
impl Send for WindowFrame
impl Sync for WindowFrame
impl Unpin for WindowFrame
impl UnwindSafe for WindowFrame
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more