sqlload 0.12.0

SQL data loading tooling. Pre-release, under development.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::file_store::errors::StoreError;

/// Why reading files failed.
#[derive(Debug, thiserror::Error)]
pub enum FilesError {
    #[error(transparent)]
    Store(#[from] StoreError),
    #[error("{key}: {reason}")]
    File { key: String, reason: String },
}

/// Why a batch could not be shaped for the destination, and the first row (within the batch) at fault when one is.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ShapeError {
    pub row: Option<usize>,
    pub reason: String,
}