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<QS> SelectableExpression<QS> for now
[src]
impl NonAggregate for now
[src]
impl<DB: Backend> QueryFragment<DB> for now
[src]
fn to_sql(&self, out: &mut DB::QueryBuilder) -> BuildQueryResult
[src]
fn collect_binds(&self, _out: &mut DB::BindCollector) -> QueryResult<()>
[src]
fn is_safe_to_cache_prepared(&self) -> bool
[src]
impl QueryId for now
[src]
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.