[][src]Trait diesel::sql_types::Foldable

pub trait Foldable: SingleValue {
    type Sum: SqlType + SingleValue;
    type Avg: SqlType + SingleValue;
}

Represents SQL types which can be used with SUM and AVG

Associated Types

type Sum: SqlType + SingleValue

The SQL type of sum(this_type)

type Avg: SqlType + SingleValue

The SQL type of avg(this_type)

Loading content...

Implementors

impl Foldable for Unsigned<BigInt>[src]

impl Foldable for Unsigned<Integer>[src]

impl Foldable for Unsigned<SmallInt>[src]

impl Foldable for BigInt[src]

impl Foldable for Double[src]

impl Foldable for Float[src]

impl Foldable for Integer[src]

impl Foldable for Interval[src]

impl Foldable for Numeric[src]

impl Foldable for SmallInt[src]

impl<T> Foldable for Nullable<T> where
    T: Foldable + SqlType<IsNull = NotNull>, 
[src]

type Sum = T::Sum

type Avg = T::Avg

Loading content...