use std::io::Error;

use crate::connector::Connector;
use crate::types::Bytes;

mod docker;
pub mod mongodb;
pub mod mongodb_docker;
pub mod mongodb_stdout;
pub mod mysql;
pub mod mysql_docker;
pub mod mysql_stdout;
pub mod postgres;
pub mod postgres_docker;
pub mod postgres_stdout;

pub trait Destination: Connector {
    fn write(&self, data: Bytes) -> Result<(), Error>;
}
