pub fn make_timestamp<'a, V, Y, Mo, D, H, Mi, S>(
year: Y,
month: Mo,
day: D,
hour: H,
minute: Mi,
second: S,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Timestamp, <<<<Y::Nullable as NullOr<Mo::Nullable>>::Output as NullOr<D::Nullable>>::Output as NullOr<H::Nullable>>::Output as NullOr<<Mi::Nullable as NullOr<S::Nullable>>::Output>>::Output, <<<<Y::Aggregate as AggOr<Mo::Aggregate>>::Output as AggOr<D::Aggregate>>::Output as AggOr<H::Aggregate>>::Output as AggOr<<Mi::Aggregate as AggOr<S::Aggregate>>::Output>>::Output>where
V: SQLParam + 'a,
V::DialectMarker: PostgresDateTimeSupport,
Y: Expr<'a, V>,
Y::SQLType: Numeric,
Mo: Expr<'a, V>,
Mo::SQLType: Numeric,
D: Expr<'a, V>,
D::SQLType: Numeric,
H: Expr<'a, V>,
H::SQLType: Numeric,
Mi: Expr<'a, V>,
Mi::SQLType: Numeric,
S: Expr<'a, V>,
S::SQLType: Numeric,
Y::Nullable: NullOr<Mo::Nullable>,
<Y::Nullable as NullOr<Mo::Nullable>>::Output: NullOr<D::Nullable>,
<<Y::Nullable as NullOr<Mo::Nullable>>::Output as NullOr<D::Nullable>>::Output: NullOr<H::Nullable>,
Mi::Nullable: NullOr<S::Nullable>,
<<<Y::Nullable as NullOr<Mo::Nullable>>::Output as NullOr<D::Nullable>>::Output as NullOr<H::Nullable>>::Output: NullOr<<Mi::Nullable as NullOr<S::Nullable>>::Output>,
H::Nullable: Nullability,
D::Nullable: Nullability,
Mo::Nullable: Nullability,
S::Nullable: Nullability,
Y::Aggregate: AggOr<Mo::Aggregate>,
<Y::Aggregate as AggOr<Mo::Aggregate>>::Output: AggOr<D::Aggregate>,
<<Y::Aggregate as AggOr<Mo::Aggregate>>::Output as AggOr<D::Aggregate>>::Output: AggOr<H::Aggregate>,
Mi::Aggregate: AggOr<S::Aggregate>,
<<<Y::Aggregate as AggOr<Mo::Aggregate>>::Output as AggOr<D::Aggregate>>::Output as AggOr<H::Aggregate>>::Output: AggOr<<Mi::Aggregate as AggOr<S::Aggregate>>::Output>,
H::Aggregate: AggregateKind,
D::Aggregate: AggregateKind,
S::Aggregate: AggregateKind,Expand description
MAKE_TIMESTAMP - constructs a timestamp from components (PostgreSQL).
ยงExample
use drizzle_core::expr::make_timestamp;
// SELECT MAKE_TIMESTAMP(2024, 1, 15, 10, 30, 0.0)
let ts = make_timestamp(2024, 1, 15, 10, 30, 0.0);