Setup store to hold databases.

This commit is contained in:
2023-06-22 11:08:40 -04:00
parent c8b93d9922
commit a23b5d467e
3 changed files with 29 additions and 2 deletions

View File

@ -1,9 +1,16 @@
use super::{Data, Database};
use std::collections::HashMap;
#[derive(Clone, Debug)]
pub struct Store;
pub struct Store {
data: HashMap<String, Data<Database>>,
}
impl Store {
pub fn new() -> Self {
Self {}
Self {
data: HashMap::new(),
}
}
pub fn list(&self) -> Vec<String> {