Struct diesel::dsl::now [−][src]
pub struct now;
Expand description
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>,
impl<Rhs> Add<Rhs> for now where
Rhs: AsExpression<<<now as Expression>::SqlType as Add>::Rhs>,
type Expression = Coerce<now, Nullable<Timestamp>>
type Expression = Coerce<now, Nullable<Timestamp>>
The expression being returned
Perform the conversion
type Expression = Coerce<now, Nullable<Timestamptz>>
type Expression = Coerce<now, Nullable<Timestamptz>>
The expression being returned
Perform the conversion
type Expression = Coerce<now, Timestamptz>
type Expression = Coerce<now, Timestamptz>
The expression being returned
Perform the conversion
Walk over this QueryFragment
for all passes. Read more
Converts this QueryFragment
to its SQL representation. Read more
fn collect_binds(
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>
fn collect_binds(
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>
Serializes all bind parameters in this query. Read more
Is this query safe to store in the prepared statement cache? Read more
Can the SQL generated by Self
be uniquely identified by its type? Read more
impl<Rhs> Sub<Rhs> for now where
Rhs: AsExpression<<<now as Expression>::SqlType as Sub>::Rhs>,
impl<Rhs> Sub<Rhs> for now where
Rhs: AsExpression<<<now as Expression>::SqlType as Sub>::Rhs>,
Auto Trait Implementations
impl RefUnwindSafe for now
impl UnwindSafe for now
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T where
DB: Backend,
T: QueryFragment<DB> + QueryId,
Conn: Connection<Backend = DB>,
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T where
DB: Backend,
T: QueryFragment<DB> + QueryId,
Conn: Connection<Backend = DB>,
Convert self
to an expression for Diesel’s query builder. Read more