sqlload 0.49.0

SQL data loading tooling.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::file_store::errors::StoreError;
use crate::http::errors::ApiError;

/// Why reading from Snowflake failed.
#[derive(Debug, thiserror::Error)]
pub enum SnowflakeSourceError {
    #[error("Snowflake: {0}")]
    Api(#[from] ApiError),
    #[error(transparent)]
    Store(#[from] StoreError),
    #[error("{0}")]
    Invalid(String),
    #[error("cannot read unloaded file {file}: {reason}")]
    File { file: String, reason: String },
    /// What the caller's batch consumer failed with, as it said it.
    #[error("{0}")]
    Consumer(String),
}