// CDCPrefix is used to group the info of CDC prefix.
#[derive(Clone, Debug)]
pub struct CDCPrefix {
    table_prefix: String,
}

impl CDCPrefix {
    pub fn new(table_prefix: String) -> Self {
        let table_prefix = format!("{}/", table_prefix.trim_end_matches('/'));
        Self { table_prefix }
    }

    pub fn table_prefix(&self) -> &str {
        &self.table_prefix
    }
}
