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, Clone, Default, PartialEq, Eq)]
pub(crate) struct KeyIndexes {
pub(crate) count: i64,
pub(crate) nulls_equal: i64,
pub(crate) others: String,
pub(crate) drops: String,
pub(crate) not_null: Vec<String>,
}
#[derive(Debug)]
pub struct PostgresWriter {
pub destination: PostgresDestination,
}