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 Clone for now[src]
fn clone(&self) -> now
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for now[src]
impl Debug for now[src]
impl Expression for now[src]
impl<QS> SelectableExpression<QS> for now[src]
type SqlTypeForSelect = Timestamp
impl NonAggregate for now[src]
impl<DB: Backend> QueryFragment<DB> for now[src]
fn to_sql(&self, out: &mut DB::QueryBuilder) -> BuildQueryResult
fn collect_binds(&self, _out: &mut DB::BindCollector) -> QueryResult<()>
fn is_safe_to_cache_prepared(&self) -> bool
impl QueryId for now[src]
impl<Rhs> Add<Rhs> for now where Rhs: AsExpression<now::SqlType::Rhs>[src]
type Output = Add<Self, Rhs::Expression>
The resulting type after applying the + operator
fn add(self, rhs: Rhs) -> Self::Output
The method for the + operator
impl<Rhs> Sub<Rhs> for now where Rhs: AsExpression<now::SqlType::Rhs>[src]
type Output = Sub<Self, Rhs::Expression>
The resulting type after applying the - operator
fn sub(self, rhs: Rhs) -> Self::Output
The method for the - operator