Skip to main content

cast_value

Function cast_value 

Source
pub fn cast_value(v: &Value, ty: &str) -> Result<Value>
Expand description

Cast a value to the named SQL type, mirroring CAST(expr AS ty). Types outside the engine’s coercion surface return SQLError::Unsupported.