current_timestamp

Function current_timestamp 

Source
pub fn current_timestamp<'a, V>() -> SQLExpr<'a, V, Timestamp, NonNull, Scalar>
where V: SQLParam + 'a,
Expand description

CURRENT_TIMESTAMP - returns the current timestamp.

Works on both SQLite and PostgreSQL.

§Example

use drizzle_core::expr::current_timestamp;

// SELECT CURRENT_TIMESTAMP
let now = current_timestamp::<SQLiteValue>();