pub struct WindowFrame { /* private fields */ }Expand description
窗口帧:ROWS BETWEEN ... AND ... 或 RANGE BETWEEN ... AND ...。
Implementations§
Source§impl WindowFrame
impl WindowFrame
Sourcepub fn rows_between(start: FrameBound, end: FrameBound) -> Self
pub fn rows_between(start: FrameBound, end: FrameBound) -> Self
ROWS BETWEEN <start> AND <end>(按物理行偏移)。
Sourcepub fn range_between(start: FrameBound, end: FrameBound) -> Self
pub fn range_between(start: FrameBound, end: FrameBound) -> Self
RANGE BETWEEN <start> AND <end>(按排序值范围)。
Sourcepub fn groups_between(start: FrameBound, end: FrameBound) -> Self
pub fn groups_between(start: FrameBound, end: FrameBound) -> Self
GROUPS BETWEEN <start> AND <end>(按排序值相同的一组行偏移)。
GROUPS 帧要求窗口定义包含 ORDER BY,否则渲染期返回
crate::error::DbError::InvalidArgument。
Trait Implementations§
Source§impl Clone for WindowFrame
impl Clone for WindowFrame
impl Copy for WindowFrame
Source§impl Debug for WindowFrame
impl Debug for WindowFrame
impl Eq for WindowFrame
Source§impl PartialEq for WindowFrame
impl PartialEq for WindowFrame
impl StructuralPartialEq for WindowFrame
Auto Trait Implementations§
impl Forget for WindowFrame
impl Freeze for WindowFrame
impl Move for WindowFrame
impl RefUnwindSafe for WindowFrame
impl Send for WindowFrame
impl Sync for WindowFrame
impl Unpin for WindowFrame
impl UnsafeUnpin for WindowFrame
impl UnwindSafe for WindowFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more