Skip to main content

value_to_param

Function value_to_param 

Source
pub fn value_to_param(v: &Value) -> OwnedParam
Expand description

Convert an oxisql_core::Value to an OwnedParam.

Extended types (Timestamp, Date, Time, Uuid, Json, Decimal, Array) are converted to their string representation and sent as Text parameters. The Postgres server handles the implicit cast for typed columns.