# 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`

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 Expression for now`

[src]

`impl NonAggregate for now`

[src]

`impl<DB: Backend> QueryFragment<DB> for now`

[src]

`fn walk_ast(&self, out: AstPass<DB>) -> QueryResult<()>`

`fn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()>`

`fn collect_binds(&self, out: &mut DB::BindCollector) -> QueryResult<()>`

`fn is_safe_to_cache_prepared(&self) -> QueryResult<bool>`

`impl QueryId for now`

[src]

`impl<QS> SelectableExpression<QS> for now where`

now: AppearsOnTable<QS>,

[src]

now: AppearsOnTable<QS>,

`impl<QS> AppearsOnTable<QS> for now where`

now: Expression,

[src]

now: Expression,

`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`

The method for the `+`

operator

`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`

The method for the `-`

operator