1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Module: catalog

pub(crate) use self::column::*;
pub(crate) use self::table::*;

mod column;
mod table;

#[derive(thiserror::Error, Debug)]
pub enum CatalogError {
    #[error("{0} not found: {1}")]
    NotFound(&'static str, String),
    #[error("duplicated {0}: {1}")]
    Duplicated(&'static str, String),
    #[error("columns empty")]
    ColumnsEmpty,
}