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)
| 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 | /// |