pub trait DatabaseOperations {
// Required methods
fn connect(&mut self) -> Result<(), Error>;
fn close(&mut self) -> Result<(), Error>;
fn replicate(&mut self) -> Result<(), Error>;
}
Expand description
Trait defining basic operations for interacting with a database.
Types implementing this trait can be used with the DBOperations
struct for managing database logic.