Setup store to hold databases.
This commit is contained in:
@ -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> {
|
||||
|
Reference in New Issue
Block a user