Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
use conduit::{implement, Result};
use futures::{Stream, StreamExt};
use serde::Deserialize;
use crate::{keyval, keyval::Key, stream, stream::Cursor};
#[implement(super::Map)]
pub fn rev_keys<'a, K>(&'a self) -> impl Stream<Item = Result<Key<'_, K>>> + Send
where
K: Deserialize<'a> + Send,
{
self.rev_raw_keys().map(keyval::result_deserialize_key::<K>)
}
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
pub fn rev_raw_keys(&self) -> impl Stream<Item = Result<Key<'_>>> + Send {
let opts = super::read_options_default();
stream::KeysRev::new(&self.db, &self.cf, opts).init(None)