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

@@ -79,7 +79,7 @@ where
{
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, from) {
let state = state.init_fwd(from.as_ref().into());
@@ -98,7 +98,7 @@ where
res: None,
};
self.db
self.engine
.pool
.execute_iter(seek)
.ok_into::<stream::Items<'_>>()
@@ -117,7 +117,7 @@ pub(super) fn is_cached<P>(map: &Arc<super::Map>, from: &P) -> bool
where
P: AsRef<[u8]> + ?Sized,
{
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_fwd(from.as_ref().into());
!state.is_incomplete()