toql_core 0.4.2

Library with core functionality for Toql
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug)]
/// Represents all errors from the SQL Builder
pub enum TableMapperError {
    /// The requested canonical alias is not used. Contains the alias name.
    #[error("canonical sql alias `{0}` is missing")]
    CanonicalAliasMissing(String),

    /// The column is missing. Contains the table and collumn name.
    #[error("database table `{0}` is missing column `{1}`")]
    ColumnMissing(String, String),
}