pub struct WindowSpec {
pub raw_definition: Option<WindowDefinitionSyntax>,
pub definition: Option<usize>,
pub reference: Option<WindowReference>,
pub partition_by: Vec<Expr>,
pub order_by: Vec<OrderBy>,
pub frame: Option<WindowFrame>,
}Fields§
§raw_definition: Option<WindowDefinitionSyntax>Raw syntax survives only until the compiler selects its query-local definition.
definition: Option<usize>Canonical definition in the enclosing query block. Older stored inline specifications have no slot.
reference: Option<WindowReference>Named window referenced by this specification while the SQL compiler resolves a WINDOW clause. Compiler-produced plans clear this field before lowering into the unified scalar IR.
partition_by: Vec<Expr>§order_by: Vec<OrderBy>§frame: Option<WindowFrame>ROWS / RANGE frame, or None when not specified (defaults
to RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW).
Implementations§
Source§impl WindowSpec
impl WindowSpec
Sourcepub fn expressions_mut(&mut self) -> impl Iterator<Item = &mut Expr>
pub fn expressions_mut(&mut self) -> impl Iterator<Item = &mut Expr>
Scalar roots owned by this specification, excluding separately stored inherited clauses.
Trait Implementations§
Source§impl Clone for WindowSpec
impl Clone for WindowSpec
Source§impl Debug for WindowSpec
impl Debug for WindowSpec
Source§impl<'de> Deserialize<'de> for WindowSpec
impl<'de> Deserialize<'de> for WindowSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WindowSpec
impl PartialEq for WindowSpec
Source§impl Serialize for WindowSpec
impl Serialize for WindowSpec
impl StructuralPartialEq for WindowSpec
Auto Trait Implementations§
impl Freeze for WindowSpec
impl RefUnwindSafe for WindowSpec
impl Send for WindowSpec
impl Sync for WindowSpec
impl Unpin for WindowSpec
impl UnsafeUnpin for WindowSpec
impl UnwindSafe for WindowSpec
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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