use crate::syntax_tree::{Date, Duration};
pub trait Dialect {
fn quote_identifier(&self, ident: &str) -> String;
fn quote_string(&self, string: &str) -> String;
fn date(&self, date: &Date) -> String;
fn duration(&self, duration: &Duration) -> String;
fn table_column(&self, table: &str, column: &str) -> String {
let quoted_table = self.quote_identifier(table);
let quoted_column = self.quote_identifier(column);
format!("{}.{}", quoted_table, quoted_column)
}
}