Skip to main content

sources_core/
row_key.rs

1use schema_core::{ColumnName, GenericValue};
2
3/// A row's primary key, as ordered column/value pairs.
4///
5/// A `Vec` rather than a single value so composite keys are represented
6/// naturally; values reuse [`GenericValue`] from the schema model. Shared
7/// vocabulary: [`cdc`](crate::cdc) names the changed row with it, and
8/// [`document`](crate::document) uses it as a document's root key.
9#[derive(Debug, Clone, PartialEq, Eq, Hash)]
10pub struct RowKey(pub Vec<(ColumnName, GenericValue)>);