cast

open fun cast(expr: Expression<*>, type: IColumnType<*>, builder: QueryBuilder)

SQL function that casts an expression to a specific type.

Parameters

expr

Expression to cast.

type

Type to cast the expression to.

builder

Query builder to append the SQL function to.