Skip to main content

make_date

Function make_date 

Source
pub fn make_date<'a, V, Y, M, D>(
    year: Y,
    month: M,
    day: D,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Date, <<Y::Nullable as NullOr<M::Nullable>>::Output as NullOr<D::Nullable>>::Output, <<Y::Aggregate as AggOr<M::Aggregate>>::Output as AggOr<D::Aggregate>>::Output>
Expand description

MAKE_DATE - constructs a date from year, month, day (PostgreSQL).

ยงExample

use drizzle_core::expr::make_date;

// SELECT MAKE_DATE(2024, 1, 15)
let d = make_date(2024, 1, 15);