sources_core/snapshot_table.rs
1use schema_core::{DatabaseSchema, TableName};
2
3/// A schema-qualified table to snapshot during an initial backfill.
4///
5/// A mechanism-neutral primitive (like [`RowKey`](crate::RowKey)): the engine
6/// computes which tables seed which indexes and hands the set to a
7/// [`ChangeCapture::snapshot`](crate::cdc::ChangeCapture::snapshot), which reads
8/// their current rows. It belongs to neither the capture nor the document
9/// concern — both refer to it.
10#[derive(Debug, Clone, PartialEq, Eq, Hash)]
11pub struct SnapshotTable {
12 pub db_schema: DatabaseSchema,
13 pub table: TableName,
14}