1 2 3 4 5 6 7 8 9 10 11 12 13 14
//! Name Databricks objects in SQL. use crate::config::models::Config; /// `` `catalog`.`schema`.`name` `` in the destination schema. pub fn databricks_table(config: &Config, name: &str) -> String { [ config.destination.database(), config.destination.schema(), name, ] .map(|part| format!("`{}`", part.replace('`', "``"))) .join(".") }