pub struct WindowSpec<'a, V: SQLParam> { /* private fields */ }Expand description
Builder for a window specification (the content inside OVER (...)).
§Example
window()
.partition_by([users.dept])
.order_by([asc(users.salary)])
.rows_between(FrameBound::UnboundedPreceding, FrameBound::CurrentRow)Implementations§
Source§impl<'a, V: SQLParam + 'a> WindowSpec<'a, V>
impl<'a, V: SQLParam + 'a> WindowSpec<'a, V>
Sourcepub fn partition_by<I>(self, exprs: I) -> Self
pub fn partition_by<I>(self, exprs: I) -> Self
Set the PARTITION BY clause.
Sourcepub fn rows_between(self, start: FrameBound, end: FrameBound) -> Self
pub fn rows_between(self, start: FrameBound, end: FrameBound) -> Self
Set a ROWS frame specification.
Sourcepub fn range_between(self, start: FrameBound, end: FrameBound) -> Self
pub fn range_between(self, start: FrameBound, end: FrameBound) -> Self
Set a RANGE frame specification.
Trait Implementations§
Auto Trait Implementations§
impl<'a, V> Freeze for WindowSpec<'a, V>where
V: Freeze,
impl<'a, V> RefUnwindSafe for WindowSpec<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for WindowSpec<'a, V>
impl<'a, V> Sync for WindowSpec<'a, V>where
V: Sync,
impl<'a, V> Unpin for WindowSpec<'a, V>where
V: Unpin,
impl<'a, V> UnsafeUnpin for WindowSpec<'a, V>where
V: UnsafeUnpin,
impl<'a, V> UnwindSafe for WindowSpec<'a, V>where
V: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more