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

Method fold_transaction_range

crates/commitlog/src/commitlog.rs:348–361  ·  view source on GitHub ↗
(&self, range: impl RangeBounds<u64>, decoder: D)

Source from the content-addressed store, hash-verified

346 }
347
348 pub fn fold_transaction_range<D>(&self, range: impl RangeBounds<u64>, decoder: D) -> Result<(), D::Error>
349 where
350 D: Decoder,
351 D::Error: From<error::Traversal>,
352 {
353 use std::ops::Bound::*;
354
355 let start = match range.start_bound() {
356 Included(x) => *x,
357 Excluded(x) => x + 1,
358 Unbounded => 0,
359 };
360 fold_transactions_internal(self.commits_from(start).with_log_format_version(), decoder, range)
361 }
362}
363
364impl<R: Repo, T> Drop for Generic<R, T> {

Callers 1

Calls 4

start_boundMethod · 0.45
commits_fromMethod · 0.45

Tested by

no test coverage detected