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

Function transactions_from

crates/commitlog/src/commitlog.rs:553–567  ·  view source on GitHub ↗
(
    repo: R,
    max_log_format_version: u8,
    offset: u64,
    de: &'a D,
)

Source from the content-addressed store, hash-verified

551}
552
553pub fn transactions_from<'a, R, D, T>(
554 repo: R,
555 max_log_format_version: u8,
556 offset: u64,
557 de: &'a D,
558) -> io::Result<impl Iterator<Item = Result<Transaction<T>, D::Error>> + 'a>
559where
560 R: Repo + 'a,
561 D: Decoder<Record = T>,
562 D::Error: From<error::Traversal>,
563 T: 'a,
564{
565 commits_from(repo, max_log_format_version, offset)
566 .map(|commits| transactions_from_internal(commits.with_log_format_version(), offset, de))
567}
568
569pub fn fold_transactions_from<R, D>(repo: R, max_log_format_version: u8, offset: u64, de: D) -> Result<(), D::Error>
570where

Callers

nothing calls this directly

Calls 4

commits_fromFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…