Function postgres_protocol::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.