pub enum WindowFrameUnits {
Rows,
Range,
Groups,
}
Expand description
There are three frame types: ROWS, GROUPS, and RANGE. The frame type determines how the starting and ending boundaries of the frame are measured.
Variants
Rows
The ROWS frame type means that the starting and ending boundaries for the frame are determined by counting individual rows relative to the current row.
Range
The RANGE frame type requires that the ORDER BY clause of the window have exactly one term. Call that term “X”. With the RANGE frame type, the elements of the frame are determined by computing the value of expression X for all rows in the partition and framing those rows for which the value of X is within a certain range of the value of X for the current row.
Groups
The GROUPS frame type means that the starting and ending boundaries are determine by counting “groups” relative to the current group. A “group” is a set of rows that all have equivalent values for all all terms of the window ORDER BY clause.
Trait Implementations
sourceimpl Clone for WindowFrameUnits
impl Clone for WindowFrameUnits
sourcefn clone(&self) -> WindowFrameUnits
fn clone(&self) -> WindowFrameUnits
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for WindowFrameUnits
impl Debug for WindowFrameUnits
sourceimpl Display for WindowFrameUnits
impl Display for WindowFrameUnits
sourceimpl From<WindowFrameUnits> for WindowFrameUnits
impl From<WindowFrameUnits> for WindowFrameUnits
sourcefn from(value: WindowFrameUnits) -> Self
fn from(value: WindowFrameUnits) -> Self
sourceimpl Hash for WindowFrameUnits
impl Hash for WindowFrameUnits
sourceimpl PartialEq<WindowFrameUnits> for WindowFrameUnits
impl PartialEq<WindowFrameUnits> for WindowFrameUnits
sourcefn eq(&self, other: &WindowFrameUnits) -> bool
fn eq(&self, other: &WindowFrameUnits) -> bool
sourceimpl PartialOrd<WindowFrameUnits> for WindowFrameUnits
impl PartialOrd<WindowFrameUnits> for WindowFrameUnits
sourcefn partial_cmp(&self, other: &WindowFrameUnits) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowFrameUnits) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more