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

Method transactions_from

crates/commitlog/src/lib.rs:525–537  ·  view source on GitHub ↗

Obtain an iterator starting from transaction offset `offset`, yielding [`Transaction`]s. Similar to [`Self::transactions`] but will skip until the provided `offset`, i.e. the first [`Transaction`] yielded will be the transaction with offset `offset`.

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

Source from the content-addressed store, hash-verified

523 /// `offset`, i.e. the first [`Transaction`] yielded will be the transaction
524 /// with offset `offset`.
525 pub fn transactions_from<'a, D>(
526 &self,
527 offset: u64,
528 de: &'a D,
529 ) -> impl Iterator<Item = Result<Transaction<T>, D::Error>> + 'a + use<'a, D, T, R>
530 where
531 D: Decoder<Record = T>,
532 D::Error: From<error::Traversal>,
533 R: 'a,
534 T: 'a,
535 {
536 self.inner.read().unwrap().transactions_from(offset, de)
537 }
538
539 /// Traverse the log from the start and "fold" its transactions into the
540 /// provided [`Decoder`].

Callers 1

transactionsMethod · 0.45

Calls 2

unwrapMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected