pub trait DatabaseInteract {
// Required methods
fn read_to_rows(
env: &EnvClient,
conditions: Option<&[Condition]>,
) -> Vec<Self>
where Self: Sized;
fn put(&self, env: &EnvClient);
fn update(&self, env: &EnvClient, conditions: &[Condition]);
}
Expand description
Trait that DatabaseDerive structures implement