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

Method cdc

src/sql-server-util/src/lib.rs:334–345  ·  view source on GitHub ↗

Return a [`CdcStream`] that can be used to track changes for the specified `capture_instances`. [`CdcStream`]: crate::cdc::CdcStream

(&mut self, capture_instances: I, metrics: M)

Source from the content-addressed store, hash-verified

332 ///
333 /// [`CdcStream`]: crate::cdc::CdcStream
334 pub fn cdc<I, M>(&mut self, capture_instances: I, metrics: M) -> crate::cdc::CdcStream<'_, M>
335 where
336 I: IntoIterator,
337 I::Item: Into<Arc<str>>,
338 M: SqlServerCdcMetrics,
339 {
340 let instances = capture_instances
341 .into_iter()
342 .map(|i| (i.into(), None))
343 .collect();
344 crate::cdc::CdcStream::new(self, instances, metrics)
345 }
346}
347
348/// A stream of [`tiberius::Row`]s.

Callers 2

mainFunction · 0.80
renderFunction · 0.80

Calls 3

collectMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected