pub struct AggregationBuilder {
pub agg_alias: Option<String>,
/* private fields */
}Fields§
§agg_alias: Option<String>Implementations§
Source§impl AggregationBuilder
impl AggregationBuilder
pub fn new(column: &str) -> Self
pub fn build_expr(&self, table_alias: &str) -> Expr
pub fn alias(self, alias: &str) -> Self
pub fn sum(self) -> Self
pub fn avg(self) -> Self
pub fn min(self) -> Self
pub fn max(self) -> Self
pub fn stddev(self) -> Self
pub fn count(self) -> Self
pub fn count_distinct(self) -> Self
pub fn corr(self, other_column: &str) -> Self
pub fn grouping(self) -> Self
pub fn var_pop(self) -> Self
pub fn stddev_pop(self) -> Self
pub fn array_agg(self) -> Self
pub fn approx_percentile(self, percentile: f64) -> Self
pub fn first_value(self) -> Self
pub fn nth_value(self, n: i64) -> Self
Trait Implementations§
Source§impl From<&str> for AggregationBuilder
impl From<&str> for AggregationBuilder
Source§impl From<AggregationBuilder> for Expr
impl From<AggregationBuilder> for Expr
Source§fn from(builder: AggregationBuilder) -> Self
fn from(builder: AggregationBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AggregationBuilder
impl !RefUnwindSafe for AggregationBuilder
impl !Send for AggregationBuilder
impl !Sync for AggregationBuilder
impl Unpin for AggregationBuilder
impl !UnwindSafe for AggregationBuilder
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> 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