Skip to main content

time

Function time 

Source
pub fn time<'a, V, E>(
    expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Time, E::Nullable, E::Aggregate>
where V: SQLParam + 'a, V::DialectMarker: SQLiteDateTimeSupport, E: Expr<'a, V>, E::SQLType: Temporal,
Expand description

TIME - extracts the time part from a temporal expression (SQLite).

Preserves the nullability of the input expression.

ยงExample

use drizzle_core::expr::time;

// SELECT TIME(users.created_at)
let created_time = time(users.created_at);