[−][src]Struct diesel::dsl::now
Represents the SQL CURRENT_TIMESTAMP constant. This is equivalent to the
NOW() function on backends that support it.
Trait Implementations
impl Expression for now[src]
impl Expression for nowimpl<QS> AppearsOnTable<QS> for now where
now: Expression, [src]
impl<QS> AppearsOnTable<QS> for now where
now: Expression, impl<QS> SelectableExpression<QS> for now where
now: AppearsOnTable<QS>, [src]
impl<QS> SelectableExpression<QS> for now where
now: AppearsOnTable<QS>, impl NonAggregate for now[src]
impl NonAggregate for nowimpl QueryId for now[src]
impl QueryId for nowtype QueryId = now
A type which uniquely represents Self in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool[src]
fn query_id() -> Option<TypeId>[src]
fn query_id() -> Option<TypeId>Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
impl<DB: Backend> QueryFragment<DB> for now[src]
impl<DB: Backend> QueryFragment<DB> for nowfn walk_ast(&self, out: AstPass<DB>) -> QueryResult<()>[src]
fn walk_ast(&self, out: AstPass<DB>) -> QueryResult<()>fn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()>[src]
fn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()>Converts this QueryFragment to its SQL representation. Read more
fn collect_binds(
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>[src]
fn collect_binds(
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>Serializes all bind parameters in this query. Read more
fn is_safe_to_cache_prepared(&self) -> QueryResult<bool>[src]
fn is_safe_to_cache_prepared(&self) -> QueryResult<bool>Is this query safe to store in the prepared statement cache? Read more
impl Clone for now[src]
impl Clone for nowfn clone(&self) -> now[src]
fn clone(&self) -> nowfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for now[src]
impl Copy for nowimpl Debug for now[src]
impl Debug for nowimpl<Rhs> Add<Rhs> for now where
Rhs: AsExpression<<<now as Expression>::SqlType as Add>::Rhs>, [src]
impl<Rhs> Add<Rhs> for now where
Rhs: AsExpression<<<now as Expression>::SqlType as Add>::Rhs>, type Output = Add<Self, Rhs::Expression>
The resulting type after applying the + operator.
fn add(self, rhs: Rhs) -> Self::Output[src]
fn add(self, rhs: Rhs) -> Self::Outputimpl<Rhs> Sub<Rhs> for now where
Rhs: AsExpression<<<now as Expression>::SqlType as Sub>::Rhs>, [src]
impl<Rhs> Sub<Rhs> for now where
Rhs: AsExpression<<<now as Expression>::SqlType as Sub>::Rhs>, type Output = Sub<Self, Rhs::Expression>
The resulting type after applying the - operator.
fn sub(self, rhs: Rhs) -> Self::Output[src]
fn sub(self, rhs: Rhs) -> Self::OutputAuto Trait Implementations
Blanket Implementations
impl<T> IntoSql for T[src]
impl<T> IntoSql for Tfn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized, [src]
fn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized, Convert self to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>, [src]
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>, Convert &self to an expression for Diesel's query builder. Read more
impl<QS, T, DB> BoxableExpression for T where
DB: Backend,
T: Expression + SelectableExpression<QS> + NonAggregate + QueryFragment<DB>, [src]
impl<QS, T, DB> BoxableExpression for T where
DB: Backend,
T: Expression + SelectableExpression<QS> + NonAggregate + QueryFragment<DB>, impl<Conn, DB, T> ExecuteDsl for T where
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId, [src]
impl<Conn, DB, T> ExecuteDsl for T where
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId, impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut T