Struct diesel::expression::dsl::now
[−]
[src]
pub struct now;
Represents the SQL CURRENT_TIMESTAMP constant. This is equivalent to the
NOW() function on backends that support it.
Trait Implementations
impl Debug for now[src]
impl Copy for now[src]
impl Clone for now[src]
fn clone(&self) -> now[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Expression for now[src]
impl NonAggregate for now[src]
impl<DB: Backend> QueryFragment<DB> for now[src]
fn walk_ast(&self, out: AstPass<DB>) -> QueryResult<()>[src]
fn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()>[src]
fn collect_binds(
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>[src]
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>
fn is_safe_to_cache_prepared(&self) -> QueryResult<bool>[src]
impl QueryId for now[src]
impl<QS> SelectableExpression<QS> for now where
now: AppearsOnTable<QS>, [src]
now: AppearsOnTable<QS>,
impl<QS> AppearsOnTable<QS> for now where
now: Expression, [src]
now: Expression,
impl<Rhs> Add<Rhs> for now where
Rhs: AsExpression<<<now as Expression>::SqlType as Add>::Rhs>, [src]
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]
Performs the + operation.
impl<Rhs> Sub<Rhs> for now where
Rhs: AsExpression<<<now as Expression>::SqlType as Sub>::Rhs>, [src]
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]
Performs the - operation.