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>where
V: SQLParam + 'a,
V::DialectMarker: PostgresDateTimeSupport,
Y: Expr<'a, V>,
Y::SQLType: Numeric,
M: Expr<'a, V>,
M::SQLType: Numeric,
D: Expr<'a, V>,
D::SQLType: Numeric,
Y::Nullable: NullOr<M::Nullable>,
M::Nullable: Nullability,
<Y::Nullable as NullOr<M::Nullable>>::Output: NullOr<D::Nullable>,
D::Nullable: Nullability,
Y::Aggregate: AggOr<M::Aggregate>,
<Y::Aggregate as AggOr<M::Aggregate>>::Output: AggOr<D::Aggregate>,
D::Aggregate: AggregateKind,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);