Skip to main content

current_time

Function current_time 

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

The current time (CURRENT_TIME), on every dialect.

The result is the dialect’s time type and never NULL.

§Examples

assert_eq!(current_time::<Value>().sql(), "CURRENT_TIME");