Struct diesel::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 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
HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self be uniquely identified by its type? Read more
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 Debug for now[src]
impl Debug for nowfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for now[src]
impl Copy for nowimpl Clone for now[src]
impl Clone for nowfn clone(&self) -> now[src]
fn clone(&self) -> nowReturns a copy of the value. Read more
fn 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 Expression for now[src]
impl Expression for nowimpl NonAggregate for now[src]
impl NonAggregate for nowimpl<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<()>Walk over this QueryFragment for all passes. Read more
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<QS> SelectableExpression<QS> for now where
now: AppearsOnTable<QS>, [src]
impl<QS> SelectableExpression<QS> for now where
now: AppearsOnTable<QS>, impl<QS> AppearsOnTable<QS> for now where
now: Expression, [src]
impl<QS> AppearsOnTable<QS> for now where
now: Expression, impl<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::OutputPerforms the + operation.
impl<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::OutputPerforms the - operation.
impl AsExpression<Timestamptz> for now[src]
impl AsExpression<Timestamptz> for nowtype Expression = Coerce<now, Timestamptz>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Nullable<Timestamptz>> for now[src]
impl AsExpression<Nullable<Timestamptz>> for nowtype Expression = Coerce<now, Nullable<Timestamptz>>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion