pub fn date<'a, V, E>(
expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Date, E::Nullable, E::Aggregate>where
V: SQLParam + 'a,
V::DialectMarker: SQLiteDateTimeSupport,
E: Expr<'a, V>,
E::SQLType: Temporal,Expand description
DATE - extracts the date part from a temporal expression (SQLite).
Preserves the nullability of the input expression.
ยงExample
use drizzle_core::expr::date;
// SELECT DATE(users.created_at)
let created_date = date(users.created_at);