Skip to main content

dbctl_core/db/
traits.rs

1pub trait Database {
2    fn name(&self) -> &str;
3    fn image(&self) -> &str;
4    fn port(&self) -> u16;
5    fn env_vars(&self) -> Vec<(String, String)>;
6    fn connection_url(&self) -> String;
7
8    fn default() -> Self
9    where
10        Self: Sized;
11}