pub struct ExprFuncBuilder { /* private fields */ }Expand description
Implementation of ExprFunctionExt.
See ExprFunctionExt for usage and examples
Implementations§
Source§impl ExprFuncBuilder
impl ExprFuncBuilder
Sourcepub fn build(self) -> Result<Expr>
pub fn build(self) -> Result<Expr>
Updates and returns the in progress Expr::AggregateFunction or Expr::WindowFunction
§Errors:
Returns an error if this builder ExprFunctionExt was used with an
Expr variant other than Expr::AggregateFunction or Expr::WindowFunction
Trait Implementations§
Source§impl Clone for ExprFuncBuilder
impl Clone for ExprFuncBuilder
Source§fn clone(&self) -> ExprFuncBuilder
fn clone(&self) -> ExprFuncBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExprFuncBuilder
impl Debug for ExprFuncBuilder
Source§impl ExprFunctionExt for ExprFuncBuilder
impl ExprFunctionExt for ExprFuncBuilder
Source§fn filter(self, filter: Expr) -> ExprFuncBuilder
fn filter(self, filter: Expr) -> ExprFuncBuilder
Add FILTER <filter>
Source§fn distinct(self) -> ExprFuncBuilder
fn distinct(self) -> ExprFuncBuilder
Add DISTINCT
Source§fn null_treatment(
self,
null_treatment: impl Into<Option<NullTreatment>>,
) -> ExprFuncBuilder
fn null_treatment( self, null_treatment: impl Into<Option<NullTreatment>>, ) -> ExprFuncBuilder
Add RESPECT NULLS or IGNORE NULLS
Source§fn partition_by(self, partition_by: Vec<Expr>) -> ExprFuncBuilder
fn partition_by(self, partition_by: Vec<Expr>) -> ExprFuncBuilder
Add
PARTITION BYSource§fn window_frame(self, window_frame: WindowFrame) -> ExprFuncBuilder
fn window_frame(self, window_frame: WindowFrame) -> ExprFuncBuilder
Add appropriate window frame conditions
Auto Trait Implementations§
impl Freeze for ExprFuncBuilder
impl !RefUnwindSafe for ExprFuncBuilder
impl Send for ExprFuncBuilder
impl Sync for ExprFuncBuilder
impl Unpin for ExprFuncBuilder
impl !UnwindSafe for ExprFuncBuilder
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<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