MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / start_lsn

Method start_lsn

src/sql-server-util/src/cdc.rs:124–131  ·  view source on GitHub ↗

Set the [`Lsn`] that we should start streaming changes from. If the provided [`Lsn`] is not available, the stream will return an error when first polled.

(mut self, capture_instance: &str, lsn: Lsn)

Source from the content-addressed store, hash-verified

122 /// If the provided [`Lsn`] is not available, the stream will return an error
123 /// when first polled.
124 pub fn start_lsn(mut self, capture_instance: &str, lsn: Lsn) -> Self {
125 let start_lsn = self
126 .capture_instances
127 .get_mut(capture_instance)
128 .expect("capture instance does not exist");
129 *start_lsn = Some(lsn);
130 self
131 }
132
133 /// The cadence at which we'll poll the upstream SQL Server database for changes.
134 ///

Callers 2

mainFunction · 0.80
renderFunction · 0.80

Calls 2

expectMethod · 0.80
get_mutMethod · 0.45

Tested by

no test coverage detected