Function quote_nullable

Source
pub fn quote_nullable(s: Option<&str>, writer: &mut impl Write)
Expand description

quote_nullable(string text)

Return the given string suitably quoted to be used as a string literal in an SQL statement string; or, if the argument is null, return NULL. Embedded single-quotes and backslashes are properly doubled.