Skip to main content

escape_options_value

Function escape_options_value 

Source
fn escape_options_value(value: &str) -> String
Expand description

Escape a value for embedding inside the libpq options connection parameter.

Within the options string, spaces separate -c key=value tokens unless escaped, and backslash is the escape character. Only spaces and backslashes are special; all other characters are literal.