Skip to main content

Module render

Module render 

Source
Expand description

SQL-literal rendering helpers for inline value substitution.

These functions turn a neutral Value into a backend-appropriate SQL literal that can be spliced directly into a statement string. They are the lowest layer of the parameter-substitution and write-path machinery: callers higher up (parameter substitution in ferrule-core, the copy write path here) compose them into full statements. The rendering is purely string-building and performs no I/O, so it is synchronous and allocation-bounded by the input value.

Functionsยง

quote_string
Quote a string for SQL: wrap in single quotes, escape ' as ''.
render_value
Render a Value into a SQL literal suitable for inline substitution.