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
Valueinto a SQL literal suitable for inline substitution.