rename db to engine

This commit is contained in:
dasha_uwu
2025-09-09 18:12:38 +05:00
committed by Jason Volk
parent e0169e3dca
commit b882e7efdb
25 changed files with 98 additions and 87 deletions

View File

@@ -31,7 +31,7 @@ where
pub fn rev_raw_stream(self: &Arc<Self>) -> impl Stream<Item = Result<KeyVal<'_>>> + Send {
use crate::pool::Seek;
let opts = super::iter_options_default(&self.db);
let opts = super::iter_options_default(&self.engine);
let state = stream::State::new(self, opts);
if is_cached(self) {
let state = state.init_rev(None);
@@ -50,7 +50,7 @@ pub fn rev_raw_stream(self: &Arc<Self>) -> impl Stream<Item = Result<KeyVal<'_>>
res: None,
};
self.db
self.engine
.pool
.execute_iter(seek)
.ok_into::<stream::ItemsRev<'_>>()
@@ -66,7 +66,7 @@ pub fn rev_raw_stream(self: &Arc<Self>) -> impl Stream<Item = Result<KeyVal<'_>>
fields(%map),
)]
pub(super) fn is_cached(map: &Arc<super::Map>) -> bool {
let opts = super::cache_iter_options_default(&map.db);
let opts = super::cache_iter_options_default(&map.engine);
let state = stream::State::new(map, opts).init_rev(None);
!state.is_incomplete()