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§
Sourcefn need_escape(&self, s: &str) -> bool
fn need_escape(&self, s: &str) -> bool
Return if string literal needs to be escaped
Sourcefn escape_string(&self, string: &str) -> String
fn escape_string(&self, string: &str) -> String
Escape a SQL string literal
fn write_escaped(&self, buffer: &mut dyn Write, string: &str)
Sourcefn unescape_string(&self, string: &str) -> String
fn unescape_string(&self, string: &str) -> String
Unescape a SQL string literal
Implementors§
impl EscapeBuilder for MysqlQueryBuilder
Available on crate feature
backend-mysql
only.impl EscapeBuilder for PostgresQueryBuilder
Available on crate feature
backend-postgres
only.impl EscapeBuilder for SqliteQueryBuilder
Available on crate feature
backend-sqlite
only.