pub struct locked;
Trait Implementations§
Source§impl Expression for locked
impl Expression for locked
Source§impl<DB> QueryFragment<DB> for locked
impl<DB> QueryFragment<DB> for locked
Source§impl QueryId for locked
impl QueryId for locked
Source§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by
Self
be uniquely identified by its type? Read moreSource§impl ValidGrouping<()> for locked
impl ValidGrouping<()> for locked
Source§type IsAggregate = No
type IsAggregate = No
Is this expression aggregate? Read more
Source§impl<__GB> ValidGrouping<__GB> for lockedwhere
__GB: IsContainedInGroupBy<locked, Output = Yes>,
impl<__GB> ValidGrouping<__GB> for lockedwhere
__GB: IsContainedInGroupBy<locked, Output = Yes>,
Source§type IsAggregate = Yes
type IsAggregate = Yes
Is this expression aggregate? Read more
impl<QS> AppearsOnTable<QS> for locked
impl Copy for locked
impl SelectableExpression<table> for locked
Auto Trait Implementations§
impl Freeze for locked
impl RefUnwindSafe for locked
impl Send for locked
impl Sync for locked
impl Unpin for locked
impl UnwindSafe for locked
Blanket Implementations§
Source§impl<T, ST> AsExpression<ST> for T
impl<T, ST> AsExpression<ST> for T
Source§type Expression = T
type Expression = T
The expression being returned
Source§fn as_expression(self) -> T
fn as_expression(self) -> T
Perform the conversion
Source§impl<T> BoolExpressionMethods for T
impl<T> BoolExpressionMethods for T
Source§fn and<T, ST>(
self,
other: T,
) -> Grouped<And<Self, <T as AsExpression<ST>>::Expression>>where
Self::SqlType: SqlType,
ST: SqlType + TypedExpressionType + BoolOrNullableBool,
T: AsExpression<ST>,
And<Self, <T as AsExpression<ST>>::Expression>: Expression,
fn and<T, ST>(
self,
other: T,
) -> Grouped<And<Self, <T as AsExpression<ST>>::Expression>>where
Self::SqlType: SqlType,
ST: SqlType + TypedExpressionType + BoolOrNullableBool,
T: AsExpression<ST>,
And<Self, <T as AsExpression<ST>>::Expression>: Expression,
Creates a SQL
AND
expression Read moreSource§fn or<T, ST>(
self,
other: T,
) -> Grouped<Or<Self, <T as AsExpression<ST>>::Expression>>where
Self::SqlType: SqlType,
ST: SqlType + TypedExpressionType + BoolOrNullableBool,
T: AsExpression<ST>,
Or<Self, <T as AsExpression<ST>>::Expression>: Expression,
fn or<T, ST>(
self,
other: T,
) -> Grouped<Or<Self, <T as AsExpression<ST>>::Expression>>where
Self::SqlType: SqlType,
ST: SqlType + TypedExpressionType + BoolOrNullableBool,
T: AsExpression<ST>,
Or<Self, <T as AsExpression<ST>>::Expression>: Expression,
Creates a SQL
OR
expression Read moreSource§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<Conn, DB, T> ExecuteDsl<Conn, DB> for T
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T
Source§impl<T> ExpressionMethods for T
impl<T> ExpressionMethods for T
Source§fn eq<T>(
self,
other: T,
) -> Grouped<Eq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn eq<T>( self, other: T, ) -> Grouped<Eq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
=
expression. Read moreSource§fn ne<T>(
self,
other: T,
) -> Grouped<NotEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn ne<T>( self, other: T, ) -> Grouped<NotEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
!=
expression. Read moreSource§fn eq_any<T>(
self,
values: T,
) -> Grouped<In<Self, <T as AsInExpression<Self::SqlType>>::InExpression>>
fn eq_any<T>( self, values: T, ) -> Grouped<In<Self, <T as AsInExpression<Self::SqlType>>::InExpression>>
Creates a SQL
IN
statement. Read moreSource§fn ne_all<T>(
self,
values: T,
) -> Grouped<NotIn<Self, <T as AsInExpression<Self::SqlType>>::InExpression>>
fn ne_all<T>( self, values: T, ) -> Grouped<NotIn<Self, <T as AsInExpression<Self::SqlType>>::InExpression>>
Creates a SQL
NOT IN
statement. Read moreSource§fn is_not_null(self) -> Grouped<IsNotNull<Self>>
fn is_not_null(self) -> Grouped<IsNotNull<Self>>
Creates a SQL
IS NOT NULL
expression. Read moreSource§fn gt<T>(
self,
other: T,
) -> Grouped<Gt<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn gt<T>( self, other: T, ) -> Grouped<Gt<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
>
expression. Read moreSource§fn ge<T>(
self,
other: T,
) -> Grouped<GtEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn ge<T>( self, other: T, ) -> Grouped<GtEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
>=
expression. Read moreSource§fn lt<T>(
self,
other: T,
) -> Grouped<Lt<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn lt<T>( self, other: T, ) -> Grouped<Lt<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
<
expression. Read moreSource§fn le<T>(
self,
other: T,
) -> Grouped<LtEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn le<T>( self, other: T, ) -> Grouped<LtEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
<=
expression. Read moreSource§fn between<T, U>(
self,
lower: T,
upper: U,
) -> Grouped<Between<Self, And<<T as AsExpression<Self::SqlType>>::Expression, <U as AsExpression<Self::SqlType>>::Expression>>>
fn between<T, U>( self, lower: T, upper: U, ) -> Grouped<Between<Self, And<<T as AsExpression<Self::SqlType>>::Expression, <U as AsExpression<Self::SqlType>>::Expression>>>
Creates a SQL
BETWEEN
expression using the given lower and upper
bounds. Read moreSource§fn not_between<T, U>(
self,
lower: T,
upper: U,
) -> Grouped<NotBetween<Self, And<<T as AsExpression<Self::SqlType>>::Expression, <U as AsExpression<Self::SqlType>>::Expression>>>
fn not_between<T, U>( self, lower: T, upper: U, ) -> Grouped<NotBetween<Self, And<<T as AsExpression<Self::SqlType>>::Expression, <U as AsExpression<Self::SqlType>>::Expression>>>
Creates a SQL
NOT BETWEEN
expression using the given lower and upper
bounds. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read moreSource§impl<T> NullableExpressionMethods for Twhere
T: Expression,
impl<T> NullableExpressionMethods for Twhere
T: Expression,
Source§fn nullable(self) -> Nullable<Self>
fn nullable(self) -> Nullable<Self>
Converts this potentially non-null expression into one which is treated
as nullable. This method has no impact on the generated SQL, and is only
used to allow certain comparisons that would otherwise fail to compile. Read more
Source§fn assume_not_null(self) -> AssumeNotNull<Self>
fn assume_not_null(self) -> AssumeNotNull<Self>
Converts this potentially nullable expression into one which will be assumed
to be not-null. This method has no impact on the generated SQL, however it will
enable you to attempt deserialization of the returned value in a non-
Option
. Read moreSource§impl<E> PreferredBoolSqlType for E
impl<E> PreferredBoolSqlType for E
Source§type PreferredSqlType = <E as Expression>::SqlType
type PreferredSqlType = <E as Expression>::SqlType
The preferred
Bool
SQL type for this AsExpression implementation. Read moreSource§impl<T> SqliteExpressionMethods for Twhere
T: Expression,
impl<T> SqliteExpressionMethods for Twhere
T: Expression,
Source§fn is<T>(
self,
other: T,
) -> Grouped<Is<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn is<T>( self, other: T, ) -> Grouped<Is<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a Sqlite
IS
expression. Read moreSource§fn is_not<T>(
self,
other: T,
) -> Grouped<IsNot<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn is_not<T>( self, other: T, ) -> Grouped<IsNot<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a Sqlite
IS NOT
expression. Read more