[][src]Struct diesel::dsl::now

pub struct now;

Represents the SQL CURRENT_TIMESTAMP constant. This is equivalent to the NOW() function on backends that support it.

Trait Implementations

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

type Output = Add<Self, Rhs::Expression>

The resulting type after applying the + operator.

impl<QS> AppearsOnTable<QS> for now where
    now: Expression
[src]

impl AsExpression<Nullable<Timestamp>> for now[src]

type Expression = Coerce<now, Nullable<Timestamp>>

The expression being returned

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

type Expression = Coerce<now, Nullable<Timestamptz>>

The expression being returned

impl AsExpression<Timestamptz> for now[src]

type Expression = Coerce<now, Timestamptz>

The expression being returned

impl Clone for now[src]

impl Copy for now[src]

impl Debug for now[src]

impl Expression for now[src]

type SqlType = Timestamp

The type that this expression represents in SQL

impl NonAggregate for now[src]

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

impl QueryId for now[src]

type QueryId = now

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

impl<QS> SelectableExpression<QS> for now where
    now: AppearsOnTable<QS>, 
[src]

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

type Output = Sub<Self, Rhs::Expression>

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for now

impl Send for now

impl Sync for now

impl Unpin for now

impl UnwindSafe for now

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<QS, T, DB> BoxableExpression<QS, DB> for T where
    DB: Backend,
    T: Expression + SelectableExpression<QS> + NonAggregate + QueryFragment<DB>, 
[src]

impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T where
    Conn: Connection<Backend = DB>,
    DB: Backend,
    T: QueryFragment<DB> + QueryId
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.