Trait EscapeBuilder

Source
pub trait EscapeBuilder {
    // Provided methods
    fn need_escape(&self, s: &str) -> bool { ... }
    fn escape_string(&self, string: &str) -> String { ... }
    fn write_escaped(&self, buffer: &mut dyn Write, string: &str) { ... }
    fn unescape_string(&self, string: &str) -> String { ... }
}

Provided Methods§

Source

fn need_escape(&self, s: &str) -> bool

Return if string literal needs to be escaped

Source

fn escape_string(&self, string: &str) -> String

Escape a SQL string literal

Source

fn write_escaped(&self, buffer: &mut dyn Write, string: &str)

Source

fn unescape_string(&self, string: &str) -> String

Unescape a SQL string literal

Implementors§