use std::path::{Path, PathBuf};
use super::interface::RuntimeDataStore;
#[derive(Debug, Clone)]
pub struct SqliteRuntimeDataStore {
root: PathBuf,
}
impl SqliteRuntimeDataStore {
pub fn new(root: PathBuf) -> Self {
Self { root }
}
}
impl RuntimeDataStore for SqliteRuntimeDataStore {
fn id(&self) -> &'static str {
"runtime_data.sqlite"
}
fn root(&self) -> &Path {
&self.root
}
}