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

Function commits_from

crates/commitlog/src/lib.rs:628–633  ·  view source on GitHub ↗

Obtain an iterator which traverses the commitlog located at the `root` directory starting from `offset` and yielding [`StoredCommit`]s. Starts the traversal without the upfront I/O imposed by [`Commitlog::open`]. See [`Commitlog::commits_from`] for more information.

(
    root: CommitLogDir,
    offset: u64,
)

Source from the content-addressed store, hash-verified

626/// Starts the traversal without the upfront I/O imposed by [`Commitlog::open`].
627/// See [`Commitlog::commits_from`] for more information.
628pub fn commits_from(
629 root: CommitLogDir,
630 offset: u64,
631) -> io::Result<impl Iterator<Item = Result<StoredCommit, error::Traversal>>> {
632 commitlog::commits_from(repo::Fs::new(root, None)?, DEFAULT_LOG_FORMAT_VERSION, offset)
633}
634
635/// Obtain an iterator which traverses the commitlog located at the `root`
636/// directory from the start, yielding [`Transaction`]s.

Callers 1

commitsFunction · 0.70

Calls 1

newFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…