current_time

Function current_time 

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

CURRENT_TIME - returns the current time.

Works on both SQLite and PostgreSQL.

§Example

use drizzle_core::expr::current_time;

// SELECT CURRENT_TIME
let now_time = current_time::<SQLiteValue>();