datetime

Function datetime 

Source
pub fn datetime<'a, V, E>(
    expr: E,
) -> SQLExpr<'a, V, Timestamp, E::Nullable, Scalar>
where V: SQLParam + 'a, 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);