feat: Integration with persy using background ops

This commit is contained in:
Tglman 2021-06-18 00:38:32 +01:00
parent 5b8d2a736e
commit ab15ec6c32
5 changed files with 275 additions and 1 deletions

View file

@ -255,6 +255,12 @@ impl Database {
#[cfg(feature = "rocksdb")]
Arc::new(Arc::<abstraction::rocksdb::Engine>::open(config)?)
}
"persy" => {
#[cfg(not(feature = "persy"))]
return Err(Error::BadConfig("Database backend not found."));
#[cfg(feature = "persy")]
Arc::new(Arc::<abstraction::persy::Engine>::open(config)?)
}
_ => {
return Err(Error::BadConfig("Database backend not found."));
}