Function postgres_protocol_sm3::escape::escape_literal

source ยท
pub fn escape_literal(input: &str) -> String
Expand description

Escape a literal and surround result with single quotes. Not recommended in most cases.

If input contains backslashes, result will be of the form E'...' so it is safe to use regardless of the setting of standard_conforming_strings.