#[derive(Debug, Clone, Copy, Default)]
pub struct BigQuerySql;
#[derive(Debug, Clone)]
pub struct BigQueryDestination {
pub api: crate::bigquery_api::models::BigQueryClient,
pub project: String,
pub ddl: std::sync::Arc<tokio::sync::Mutex<()>>,
}
#[derive(Debug)]
pub struct OpenStream {
pub name: String,
pub offset: i64,
pub requests: Option<tokio::sync::mpsc::Sender<crate::bigquery_api::models::AppendRowsRequest>>,
pub answers: Option<tokio::task::JoinHandle<Result<usize, crate::http::errors::ApiError>>>,
}
#[derive(Debug)]
pub struct BigQueryWriter {
pub destination: BigQueryDestination,
pub parent: String,
pub streams: Vec<OpenStream>,
pub requests_sent: usize,
}