Function clock_timestamp
Source pub fn clock_timestamp<'a, V>() -> SQLExpr<'a, V, Timestamptz, NonNull, Scalar, ()>
Expand description
The actual wall-clock time (CLOCK_TIMESTAMP()), on PostgreSQL.
Unlike now and CURRENT_TIMESTAMP, the value changes during a
transaction. The result is timestamptz and never NULL.
ยงExamples
assert_eq!(clock_timestamp::<Value>().sql(), "CLOCK_TIMESTAMP()");