pub struct RowNumber<'a> { /* private fields */ }
Expand description
A window function that assigns a sequential integer number to each row in the query’s result set.
Implementations§
Source§impl<'a> RowNumber<'a>
impl<'a> RowNumber<'a>
Sourcepub fn order_by<T>(self, value: T) -> Selfwhere
T: IntoOrderDefinition<'a>,
pub fn order_by<T>(self, value: T) -> Selfwhere
T: IntoOrderDefinition<'a>,
Define the order of the row number. Is the row order if not set.
Sourcepub fn partition_by<T>(self, partition: T) -> Self
pub fn partition_by<T>(self, partition: T) -> Self
Define the partitioning of the row number
Trait Implementations§
impl<'a> StructuralPartialEq for RowNumber<'a>
Auto Trait Implementations§
impl<'a> Freeze for RowNumber<'a>
impl<'a> RefUnwindSafe for RowNumber<'a>
impl<'a> Send for RowNumber<'a>
impl<'a> Sync for RowNumber<'a>
impl<'a> Unpin for RowNumber<'a>
impl<'a> UnwindSafe for RowNumber<'a>
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