feat: Integration with persy using background ops
This commit is contained in:
parent
5b8d2a736e
commit
ab15ec6c32
5 changed files with 275 additions and 1 deletions
|
@ -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."));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue