use std::sync::Arc;
use crate::project::models::ProjectConfig;
#[derive(Debug, Clone, Copy, Default)]
pub struct PostgresSql;
#[derive(Debug, Clone)]
pub struct PostgresDestination {
pub project: Arc<ProjectConfig>,
pub connection: String,
pub database: Option<String>,
pub session: Arc<
tokio::sync::Mutex<
Option<(
tokio_postgres::Client,
crate::postgres_source::models::Encryption,
)>,
>,
>,
pub reconnects: bool,
pub ddl: Arc<tokio::sync::Mutex<()>>,
}
#[derive(Debug)]
pub struct PostgresWriter {
pub destination: PostgresDestination,
}