diff options
Diffstat (limited to 'src/database.rs')
-rw-r--r-- | src/database.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/database.rs b/src/database.rs deleted file mode 100644 index 3ba8c52..0000000 --- a/src/database.rs +++ /dev/null @@ -1,13 +0,0 @@ -use anyhow::Context; - -#[derive(Debug)] -pub struct Database { - pub db: sled::Db, -} - -impl Database { - pub fn open(path: &str) -> Result<Self, anyhow::Error> { - let db = sled::open(path).context("opening database")?; - Ok(Self { db }) - } -} |