use crate::postgres_source::models::{ReadColumn, SourceTable};
use crate::project::models::UnloadStage;
use crate::sql_api::models::SqlClient;
use crate::stage_api::models::DriverSession;
#[derive(Debug)]
pub struct SnowflakeReader {
pub(crate) sql: SqlClient,
pub(crate) driver: DriverSession,
pub(crate) http: reqwest::Client,
pub(crate) stage: Option<UnloadStage>,
}
#[derive(Debug, Clone, Copy)]
pub struct UnloadRequest<'a> {
pub table: &'a SourceTable,
pub sql: Option<&'a str>,
pub columns: &'a [ReadColumn],
pub filter: Option<&'a str>,
pub batch_rows: usize,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) enum UnloadFolder {
Internal { stage_path: String },
External {
copy_target: String,
options: String,
folder: crate::store_paths::models::Location,
},
}