feat: swappable database backend

This commit is contained in:
Timo Kösters
2021-06-08 18:10:00 +02:00
parent 81715bd84d
commit d0ee823254
47 changed files with 1434 additions and 981 deletions

View File

@@ -23,11 +23,16 @@ pub type Result<T> = std::result::Result<T, Error>;
#[derive(Error, Debug)]
pub enum Error {
#[error("There was a problem with the connection to the database.")]
#[error("There was a problem with the connection to the sled database.")]
SledError {
#[from]
source: sled::Error,
},
#[error("There was a problem with the connection to the rocksdb database: {source}")]
RocksDbError {
#[from]
source: rocksdb::Error,
},
#[error("Could not generate an image.")]
ImageError {
#[from]