Skip to main content

current_date

Function current_date 

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

The current date (CURRENT_DATE), on every dialect.

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

§Examples

assert_eq!(current_date::<Value>().sql(), "CURRENT_DATE");