quote_mysql_ident

Function quote_mysql_ident 

Source
pub fn quote_mysql_ident(identifier: &str) -> String
Expand description

Quote a MySQL identifier (database, table, column)

MySQL uses backticks for identifier quoting. Escapes embedded backticks by doubling them.

ยงExamples

use database_replicator::utils::quote_mysql_ident;
assert_eq!(quote_mysql_ident("users"), "`users`");
assert_eq!(quote_mysql_ident("user`name"), "`user``name`");