Completed making the session trait for databases.

This commit is contained in:
2023-02-05 11:29:00 -05:00
parent 51fc2c8921
commit 5b291e3553
2 changed files with 57 additions and 17 deletions

View File

@ -27,7 +27,7 @@ trait FileData<F> {
trait SessionData {
fn add(&mut self, key: &str, value: &str, data: &str) -> Result<Vec<String>, DBError>;
fn get(&self, key: &str, value: &str) -> Result<Vec<String>, DBError>;
fn show(&self, keys: Vec<&str>) -> Result<Vec<String>, DBError>;
fn list(&self, keys: Vec<&str>) -> Result<Vec<String>, DBError>;
}
#[derive(Clone)]