mod combine_queries_for_inlining;
mod def_name_registry;
mod rename_conflicting_defs;

pub use combine_queries_for_inlining::{
    combine_parsed_queries_for_inlining, combine_queries_for_inlining, CombineQueriesOk, CteInline,
    ParsedCteInline,
};

#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum CombineQueriesError {
    #[error("query has parse errors")]
    QueryHasParseErrors,
    #[error("invalid CTE name: {0}")]
    InvalidCteName(String),
    #[error("duplicate catalog key in cte_inlines: {0}")]
    DuplicateCatalogKey(String),
    #[error("{0}")]
    Message(String),
}
