1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
//! Error types used in sea-query.

/// Result type for sea-query
pub type Result<T> = anyhow::Result<T, Error>;

#[derive(thiserror::Error, Debug, PartialEq, Eq)]
pub enum Error {
    /// Column and value vector having different length
    #[error("Columns and values length mismatch: {col_len} != {val_len}")]
    ColValNumMismatch { col_len: usize, val_len: usize },
}