Trait zephyr_sdk::DatabaseInteract
source · pub trait DatabaseInteract {
// Required methods
fn read_to_rows(env: &EnvClient) -> Vec<Self>
where Self: Sized;
fn put(&self, env: &EnvClient);
fn update(&self, env: &EnvClient, conditions: &[Condition]);
}
Expand description
Trait that DatabaseDerive structures implement
Required Methods§
sourcefn read_to_rows(env: &EnvClient) -> Vec<Self>where
Self: Sized,
fn read_to_rows(env: &EnvClient) -> Vec<Self>where
Self: Sized,
Reads from the database into a vector of Self
.