MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / fold_transactions_from

Method fold_transactions_from

crates/commitlog/src/lib.rs:571–577  ·  view source on GitHub ↗

Traverse the log from the given transaction offset and "fold" its transactions into the provided [`Decoder`]. Similar to [`Self::fold_transactions`] but will skip until the provided `offset`, i.e. the first `tx_offset` passed to [`Decoder::decode_record`] will be equal to `offset`.

(&self, offset: u64, de: D)

Source from the content-addressed store, hash-verified

569 /// `offset`, i.e. the first `tx_offset` passed to [`Decoder::decode_record`]
570 /// will be equal to `offset`.
571 pub fn fold_transactions_from<D>(&self, offset: u64, de: D) -> Result<(), D::Error>
572 where
573 D: Decoder,
574 D::Error: From<error::Traversal>,
575 {
576 self.inner.read().unwrap().fold_transactions_from(offset, de)
577 }
578
579 pub fn fold_transactions_range<D>(&self, range: impl RangeBounds<u64>, de: D) -> Result<(), D::Error>
580 where

Callers 1

fold_transactionsMethod · 0.45

Calls 2

unwrapMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected