Skip to main content

quote_ident

Function quote_ident 

Source
pub fn quote_ident(name: &str) -> String
Expand description

Quote a SQL identifier by wrapping it in double quotes and doubling any internal quote, so names that collide with keywords or contain specials are safe to splice into SQL. quote_ident("select")"select"; a name containing a quote has it doubled: quote_ident("a\"b")"a""b".