SqlMax

Struct SqlMax 

Source
pub struct SqlMax<S: SelectableTables, E: SqlExpression<S>>{ /* private fields */ }

Implementations§

Source§

impl<S: SelectableTables, E: SqlExpression<S>> SqlMax<S, E>

Source

pub fn new(expr: E) -> Self

Trait Implementations§

Source§

impl<S: SelectableTables, E: SqlExpression<S>> SqlExpression<S> for SqlMax<S, E>

Source§

const IS_AGGREGATE: bool = true

Is this sql expression an aggregate expression?
Source§

type RustType = <E as SqlExpression<S>>::RustType

The rust type of this sql expression.
Source§

type SqlType = <E as SqlExpression<S>>::SqlType

The sql type of this sql expresion.
Source§

fn write_sql_string<'s, 'a>( &'s self, f: &mut String, parameter_binder: &mut ParameterBinder<'a>, ) -> Result
where 's: 'a,

Writes the sql expression as an sql string which can be evaluated by the database.
Source§

fn write_parenthesized_sql_string<'s, 'a>( &'s self, f: &mut String, parameter_binder: &mut ParameterBinder<'a>, ) -> Result
where 's: 'a,

Writes the sql expression as an sql string surrounded by parentheses.
Source§

fn equals<O: SqlExpression<S, SqlType = <Self as SqlExpression<S>>::SqlType>>( self, other: O, ) -> SqlConditionEq<S, Self, O>

Returns a condition which will be true if the given expression is equal to this one.
Source§

fn not_equals<O: SqlExpression<S, SqlType = <Self as SqlExpression<S>>::SqlType>>( self, other: O, ) -> SqlConditionNotEq<S, Self, O>

Returns a condition which will be true if the given expression is not equal to this one.
Source§

fn count(self) -> SqlCount<S, Self>

Returns an expression which evaluates to the amount of items returned from the query.

Auto Trait Implementations§

§

impl<S, E> Freeze for SqlMax<S, E>
where E: Freeze,

§

impl<S, E> RefUnwindSafe for SqlMax<S, E>

§

impl<S, E> Send for SqlMax<S, E>
where E: Send, S: Send,

§

impl<S, E> Sync for SqlMax<S, E>
where E: Sync, S: Sync,

§

impl<S, E> TypesNotEqual for SqlMax<S, E>

§

impl<S, E> Unpin for SqlMax<S, E>
where E: Unpin, S: Unpin,

§

impl<S, E> UnwindSafe for SqlMax<S, E>
where E: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<S, Lhs, Rhs> BooleanAndableSqlExpression<S, Rhs> for Lhs
where S: SelectableTables, Lhs: SqlExpression<S, SqlType = SqlBool>, Rhs: SqlExpression<S, SqlType = SqlBool>,

Source§

fn and(self, other: Rhs) -> SqlBooleanAnd<S, Self, Rhs>

Source§

impl<S, Lhs, Rhs> BooleanOrableSqlExpression<S, Rhs> for Lhs
where S: SelectableTables, Lhs: SqlExpression<S, SqlType = SqlBool>, Rhs: SqlExpression<S, SqlType = SqlBool>,

Source§

fn or(self, other: Rhs) -> SqlBooleanOr<S, Self, Rhs>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S, T> LikeableSqlExpression<S> for T
where S: SelectableTables, T: SqlExpression<S, SqlType = SqlText>,

Source§

fn like<Rhs: SqlExpression<S, SqlType = SqlText>>( self, like_pattern: Rhs, ) -> SqlConditionLike<S, Self, Rhs>

Returns a condition which will be true if this string matches the given pattern. Read more
Source§

fn not_like<Rhs: SqlExpression<S, SqlType = SqlText>>( self, like_pattern: Rhs, ) -> SqlConditionNotLike<S, Self, Rhs>

Returns a condition which will be true if this string doesn’t match the given pattern. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V