improve tracing instruments on database::map
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
6c66391988
commit
62d560e2fb
15 changed files with 15 additions and 38 deletions
|
@ -38,7 +38,7 @@ where
|
||||||
/// Fetch a value from the database into cache, returning a reference-handle
|
/// Fetch a value from the database into cache, returning a reference-handle
|
||||||
/// asynchronously. The key is serialized into a user-supplied Writer.
|
/// asynchronously. The key is serialized into a user-supplied Writer.
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self, buf), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self, buf), level = "trace")]
|
||||||
pub fn bqry<K, B>(&self, key: &K, buf: &mut B) -> impl Future<Output = Result<Handle<'_>>> + Send
|
pub fn bqry<K, B>(&self, key: &K, buf: &mut B) -> impl Future<Output = Result<Handle<'_>>> + Send
|
||||||
where
|
where
|
||||||
K: Serialize + ?Sized + Debug,
|
K: Serialize + ?Sized + Debug,
|
||||||
|
|
|
@ -149,6 +149,7 @@ where
|
||||||
/// - Key is serialized to supplied buffer
|
/// - Key is serialized to supplied buffer
|
||||||
/// - Val is raw
|
/// - Val is raw
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
|
#[tracing::instrument(skip(self, val, buf), level = "trace")]
|
||||||
pub fn bput_raw<K, V, Bk>(&self, key: K, val: V, mut buf: Bk)
|
pub fn bput_raw<K, V, Bk>(&self, key: K, val: V, mut buf: Bk)
|
||||||
where
|
where
|
||||||
K: Serialize + Debug,
|
K: Serialize + Debug,
|
||||||
|
|
|
@ -5,7 +5,6 @@ use serde::Deserialize;
|
||||||
use crate::{keyval, keyval::Key, stream};
|
use crate::{keyval, keyval::Key, stream};
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn keys<'a, K>(&'a self) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
pub fn keys<'a, K>(&'a self) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
||||||
where
|
where
|
||||||
K: Deserialize<'a> + Send,
|
K: Deserialize<'a> + Send,
|
||||||
|
|
|
@ -7,7 +7,6 @@ use serde::{Deserialize, Serialize};
|
||||||
use crate::{keyval, keyval::Key, ser, stream};
|
use crate::{keyval, keyval::Key, ser, stream};
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn keys_from<'a, K, P>(&'a self, from: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
pub fn keys_from<'a, K, P>(&'a self, from: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -18,7 +17,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self), level = "trace")]
|
||||||
pub fn keys_from_raw<P>(&self, from: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
pub fn keys_from_raw<P>(&self, from: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -28,7 +27,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn keys_raw_from<'a, K, P>(&'a self, from: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
pub fn keys_raw_from<'a, K, P>(&'a self, from: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync,
|
||||||
|
@ -39,7 +37,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self, from), fields(%self), level = "trace")]
|
||||||
pub fn raw_keys_from<P>(&self, from: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
pub fn raw_keys_from<P>(&self, from: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug,
|
P: AsRef<[u8]> + ?Sized + Debug,
|
||||||
|
|
|
@ -11,7 +11,6 @@ use serde::{Deserialize, Serialize};
|
||||||
use crate::{keyval, keyval::Key, ser};
|
use crate::{keyval, keyval::Key, ser};
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn keys_prefix<'a, K, P>(&'a self, prefix: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
pub fn keys_prefix<'a, K, P>(&'a self, prefix: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -22,7 +21,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self), level = "trace")]
|
||||||
pub fn keys_prefix_raw<P>(&self, prefix: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
pub fn keys_prefix_raw<P>(&self, prefix: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -33,7 +32,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn keys_raw_prefix<'a, K, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<Key<'_, K>>> + Send + 'a
|
pub fn keys_raw_prefix<'a, K, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<Key<'_, K>>> + Send + 'a
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
||||||
|
@ -44,7 +42,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn raw_keys_prefix<'a, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<Key<'_>>> + Send + 'a
|
pub fn raw_keys_prefix<'a, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<Key<'_>>> + Send + 'a
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
||||||
|
|
|
@ -25,7 +25,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self, buf), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self, buf), level = "trace")]
|
||||||
pub fn bdel<K, B>(&self, key: K, buf: &mut B)
|
pub fn bdel<K, B>(&self, key: K, buf: &mut B)
|
||||||
where
|
where
|
||||||
K: Serialize + Debug,
|
K: Serialize + Debug,
|
||||||
|
|
|
@ -5,7 +5,6 @@ use serde::Deserialize;
|
||||||
use crate::{keyval, keyval::Key, stream};
|
use crate::{keyval, keyval::Key, stream};
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_keys<'a, K>(&'a self) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
pub fn rev_keys<'a, K>(&'a self) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
||||||
where
|
where
|
||||||
K: Deserialize<'a> + Send,
|
K: Deserialize<'a> + Send,
|
||||||
|
|
|
@ -7,7 +7,6 @@ use serde::{Deserialize, Serialize};
|
||||||
use crate::{keyval, keyval::Key, ser, stream};
|
use crate::{keyval, keyval::Key, ser, stream};
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_keys_from<'a, K, P>(&'a self, from: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
pub fn rev_keys_from<'a, K, P>(&'a self, from: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -18,7 +17,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self), level = "trace")]
|
||||||
pub fn rev_keys_from_raw<P>(&self, from: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
pub fn rev_keys_from_raw<P>(&self, from: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -28,7 +27,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_keys_raw_from<'a, K, P>(&'a self, from: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
pub fn rev_keys_raw_from<'a, K, P>(&'a self, from: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync,
|
||||||
|
@ -39,7 +37,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self, from), fields(%self), level = "trace")]
|
||||||
pub fn rev_raw_keys_from<P>(&self, from: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
pub fn rev_raw_keys_from<P>(&self, from: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug,
|
P: AsRef<[u8]> + ?Sized + Debug,
|
||||||
|
|
|
@ -11,7 +11,6 @@ use serde::{Deserialize, Serialize};
|
||||||
use crate::{keyval, keyval::Key, ser};
|
use crate::{keyval, keyval::Key, ser};
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_keys_prefix<'a, K, P>(&'a self, prefix: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
pub fn rev_keys_prefix<'a, K, P>(&'a self, prefix: &P) -> impl Stream<Item = Result<Key<'_, K>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -22,7 +21,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self), level = "trace")]
|
||||||
pub fn rev_keys_prefix_raw<P>(&self, prefix: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
pub fn rev_keys_prefix_raw<P>(&self, prefix: &P) -> impl Stream<Item = Result<Key<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -33,7 +32,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_keys_raw_prefix<'a, K, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<Key<'_, K>>> + Send + 'a
|
pub fn rev_keys_raw_prefix<'a, K, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<Key<'_, K>>> + Send + 'a
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
||||||
|
@ -44,7 +42,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_raw_keys_prefix<'a, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<Key<'_>>> + Send + 'a
|
pub fn rev_raw_keys_prefix<'a, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<Key<'_>>> + Send + 'a
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
||||||
|
|
|
@ -8,7 +8,6 @@ use crate::{keyval, keyval::KeyVal, stream};
|
||||||
///
|
///
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_stream<'a, K, V>(&'a self) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
pub fn rev_stream<'a, K, V>(&'a self) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
||||||
where
|
where
|
||||||
K: Deserialize<'a> + Send,
|
K: Deserialize<'a> + Send,
|
||||||
|
|
|
@ -11,7 +11,6 @@ use crate::{keyval, keyval::KeyVal, ser, stream};
|
||||||
/// - Query is serialized
|
/// - Query is serialized
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_stream_from<'a, K, V, P>(&'a self, from: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
pub fn rev_stream_from<'a, K, V, P>(&'a self, from: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -27,7 +26,7 @@ where
|
||||||
/// - Query is serialized
|
/// - Query is serialized
|
||||||
/// - Result is raw
|
/// - Result is raw
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self), level = "trace")]
|
||||||
pub fn rev_stream_from_raw<P>(&self, from: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
pub fn rev_stream_from_raw<P>(&self, from: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -41,7 +40,6 @@ where
|
||||||
/// - Query is raw
|
/// - Query is raw
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_stream_raw_from<'a, K, V, P>(&'a self, from: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
pub fn rev_stream_raw_from<'a, K, V, P>(&'a self, from: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync,
|
||||||
|
@ -57,7 +55,7 @@ where
|
||||||
/// - Query is raw
|
/// - Query is raw
|
||||||
/// - Result is raw
|
/// - Result is raw
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self, from), fields(%self), level = "trace")]
|
||||||
pub fn rev_raw_stream_from<P>(&self, from: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
pub fn rev_raw_stream_from<P>(&self, from: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug,
|
P: AsRef<[u8]> + ?Sized + Debug,
|
||||||
|
|
|
@ -15,7 +15,6 @@ use crate::{keyval, keyval::KeyVal, ser};
|
||||||
/// - Query is serialized
|
/// - Query is serialized
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_stream_prefix<'a, K, V, P>(&'a self, prefix: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
pub fn rev_stream_prefix<'a, K, V, P>(&'a self, prefix: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -31,7 +30,7 @@ where
|
||||||
/// - Query is serialized
|
/// - Query is serialized
|
||||||
/// - Result is raw
|
/// - Result is raw
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self), level = "trace")]
|
||||||
pub fn rev_stream_prefix_raw<P>(&self, prefix: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
pub fn rev_stream_prefix_raw<P>(&self, prefix: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -46,7 +45,6 @@ where
|
||||||
/// - Query is raw
|
/// - Query is raw
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_stream_raw_prefix<'a, K, V, P>(
|
pub fn rev_stream_raw_prefix<'a, K, V, P>(
|
||||||
&'a self, prefix: &'a P,
|
&'a self, prefix: &'a P,
|
||||||
) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send + 'a
|
) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send + 'a
|
||||||
|
@ -64,7 +62,6 @@ where
|
||||||
/// - Query is raw
|
/// - Query is raw
|
||||||
/// - Result is raw
|
/// - Result is raw
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn rev_raw_stream_prefix<'a, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send + 'a
|
pub fn rev_raw_stream_prefix<'a, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send + 'a
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
||||||
|
|
|
@ -8,7 +8,6 @@ use crate::{keyval, keyval::KeyVal, stream};
|
||||||
///
|
///
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn stream<'a, K, V>(&'a self) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
pub fn stream<'a, K, V>(&'a self) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
||||||
where
|
where
|
||||||
K: Deserialize<'a> + Send,
|
K: Deserialize<'a> + Send,
|
||||||
|
|
|
@ -11,7 +11,6 @@ use crate::{keyval, keyval::KeyVal, ser, stream};
|
||||||
/// - Query is serialized
|
/// - Query is serialized
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn stream_from<'a, K, V, P>(&'a self, from: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
pub fn stream_from<'a, K, V, P>(&'a self, from: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -27,7 +26,7 @@ where
|
||||||
/// - Query is serialized
|
/// - Query is serialized
|
||||||
/// - Result is raw
|
/// - Result is raw
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self), level = "trace")]
|
||||||
pub fn stream_from_raw<P>(&self, from: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
pub fn stream_from_raw<P>(&self, from: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -41,7 +40,6 @@ where
|
||||||
/// - Query is raw
|
/// - Query is raw
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn stream_raw_from<'a, K, V, P>(&'a self, from: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
pub fn stream_raw_from<'a, K, V, P>(&'a self, from: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync,
|
||||||
|
@ -57,7 +55,7 @@ where
|
||||||
/// - Query is raw
|
/// - Query is raw
|
||||||
/// - Result is raw
|
/// - Result is raw
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self, from), fields(%self), level = "trace")]
|
||||||
pub fn raw_stream_from<P>(&self, from: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
pub fn raw_stream_from<P>(&self, from: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug,
|
P: AsRef<[u8]> + ?Sized + Debug,
|
||||||
|
|
|
@ -15,7 +15,6 @@ use crate::{keyval, keyval::KeyVal, ser};
|
||||||
/// - Query is serialized
|
/// - Query is serialized
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn stream_prefix<'a, K, V, P>(&'a self, prefix: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
pub fn stream_prefix<'a, K, V, P>(&'a self, prefix: &P) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -31,7 +30,7 @@ where
|
||||||
/// - Query is serialized
|
/// - Query is serialized
|
||||||
/// - Result is raw
|
/// - Result is raw
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
#[tracing::instrument(skip(self), level = "trace")]
|
||||||
pub fn stream_prefix_raw<P>(&self, prefix: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
pub fn stream_prefix_raw<P>(&self, prefix: &P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send
|
||||||
where
|
where
|
||||||
P: Serialize + ?Sized + Debug,
|
P: Serialize + ?Sized + Debug,
|
||||||
|
@ -46,7 +45,6 @@ where
|
||||||
/// - Query is raw
|
/// - Query is raw
|
||||||
/// - Result is deserialized
|
/// - Result is deserialized
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn stream_raw_prefix<'a, K, V, P>(
|
pub fn stream_raw_prefix<'a, K, V, P>(
|
||||||
&'a self, prefix: &'a P,
|
&'a self, prefix: &'a P,
|
||||||
) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send + 'a
|
) -> impl Stream<Item = Result<KeyVal<'_, K, V>>> + Send + 'a
|
||||||
|
@ -64,7 +62,6 @@ where
|
||||||
/// - Query is raw
|
/// - Query is raw
|
||||||
/// - Result is raw
|
/// - Result is raw
|
||||||
#[implement(super::Map)]
|
#[implement(super::Map)]
|
||||||
#[tracing::instrument(skip(self), fields(%self), level = "trace")]
|
|
||||||
pub fn raw_stream_prefix<'a, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send + 'a
|
pub fn raw_stream_prefix<'a, P>(&'a self, prefix: &'a P) -> impl Stream<Item = Result<KeyVal<'_>>> + Send + 'a
|
||||||
where
|
where
|
||||||
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
P: AsRef<[u8]> + ?Sized + Debug + Sync + 'a,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue