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

Function commits

crates/commitlog/src/lib.rs:619–621  ·  view source on GitHub ↗

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

(root: CommitLogDir)

Source from the content-addressed store, hash-verified

617/// Starts the traversal without the upfront I/O imposed by [`Commitlog::open`].
618/// See [`Commitlog::commits`] for more information.
619pub fn commits(root: CommitLogDir) -> io::Result<impl Iterator<Item = Result<StoredCommit, error::Traversal>>> {
620 commits_from(root, 0)
621}
622
623/// Obtain an iterator which traverses the commitlog located at the `root`
624/// directory starting from `offset` and yielding [`StoredCommit`]s.

Callers 1

create_readerFunction · 0.50

Calls 1

commits_fromFunction · 0.70

Tested by 1

create_readerFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…