Skip to main content

render_value

Function render_value 

Source
pub fn render_value(value: &Value, backend: Backend) -> String
Expand description

Render a Value into a SQL literal suitable for inline substitution.

Backend-aware only for booleans, where dialects diverge (Oracle has no native boolean and uses 1/0; the rest use TRUE/FALSE). Numeric and decimal values pass through unquoted; strings and the catch-all other arm are single-quote-escaped via quote_string; raw bytes render as a backend-portable X'..' hex literal.