Skip to main content

sql_quote

Function sql_quote 

Source
pub fn sql_quote(ty: &Type, text: &str, is_null: bool) -> String
Expand description

Render a cell’s already-stringified text as a SQL literal suitable for an INSERT.

Numeric and boolean types are emitted bare; everything else is single-quoted with embedded quotes doubled. NULLs become the NULL keyword.