Skip to main content

clock_timestamp

Function clock_timestamp 

Source
pub fn clock_timestamp<'a, V>() -> SQLExpr<'a, V, Timestamptz, NonNull, Scalar>
Expand description

CLOCK_TIMESTAMP - returns the actual wall-clock time (PostgreSQL).

Unlike NOW() or CURRENT_TIMESTAMP, this changes during a transaction.

ยงExample

use drizzle_core::expr::clock_timestamp;

// SELECT CLOCK_TIMESTAMP()
let wall_clock = clock_timestamp::<PostgresValue>();