Skip to main content

cast

Function cast 

Source
pub fn cast(
    expression: impl IntoExpr,
    type_name: impl Into<Cow<'static, str>>,
) -> Expr
Expand description

CAST(expr AS type_name).

SQLite has no :: shorthand, so this is the only spelling. Not wrapped in parentheses of its own: CAST(…) is already self-delimiting.