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