Struct sqlparser::ast::WindowFrame
source · [−]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
sourceimpl Clone for WindowFrame
impl Clone for WindowFrame
sourcefn clone(&self) -> WindowFrame
fn clone(&self) -> WindowFrame
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowFrame
impl Debug for WindowFrame
sourceimpl Default for WindowFrame
impl Default for WindowFrame
sourceimpl Hash for WindowFrame
impl Hash for WindowFrame
sourceimpl PartialEq<WindowFrame> for WindowFrame
impl PartialEq<WindowFrame> for WindowFrame
sourcefn eq(&self, other: &WindowFrame) -> bool
fn eq(&self, other: &WindowFrame) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WindowFrame) -> bool
fn ne(&self, other: &WindowFrame) -> bool
This method tests for !=
.
impl Eq for WindowFrame
impl StructuralEq for WindowFrame
impl StructuralPartialEq for WindowFrame
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more