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]
[+]

A type which uniquely represents Self in a SQL query. Read more

HAS_STATIC_QUERY_ID: bool = true

Can the SQL generated by Self be uniquely identified by its type? Read more

[]

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more

impl Debug for now
[src]
[+]

[]

Formats the value using the given formatter. Read more

impl Copy for now
[src]

impl Clone for now
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl Expression for now
[src]

The type that this expression represents in SQL

impl NonAggregate for now
[src]

impl<DB: Backend> QueryFragment<DB> for now
[src]
[+]

[]

Walk over this QueryFragment for all passes. Read more

[]

Converts this QueryFragment to its SQL representation. Read more

[]

Serializes all bind parameters in this query. Read more

[]

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> AppearsOnTable<QS> for now where
    now: Expression
[src]

impl<Rhs> Add<Rhs> for now where
    Rhs: AsExpression<<<now as Expression>::SqlType as Add>::Rhs>, 
[src]
[+]

The resulting type after applying the + operator.

[]

Performs the + operation.

impl<Rhs> Sub<Rhs> for now where
    Rhs: AsExpression<<<now as Expression>::SqlType as Sub>::Rhs>, 
[src]
[+]

The resulting type after applying the - operator.

[]

Performs the - operation.

impl AsExpression<Timestamptz> for now
[src]
[+]

The expression being returned

[]

Perform the conversion

impl AsExpression<Nullable<Timestamptz>> for now
[src]
[+]

The expression being returned

[]

Perform the conversion

Auto Trait Implementations

impl Send for now

impl Sync for now