Skip to content

Commit 7e4bb00

Browse files
committed
Table: Describe guarantee about pk and ck column names
Now that we verify there are no gaps in pk and ck, we can explicitly provide this guarantee to users.
1 parent 1621a93 commit 7e4bb00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scylla/src/cluster/metadata.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,11 @@ pub struct Keyspace {
197197
#[derive(Clone, Debug, PartialEq, Eq)]
198198
pub struct Table {
199199
pub columns: HashMap<String, Column>,
200+
/// Names of the column of partition key.
201+
/// All of the names are guaranteed to be present in `columns` field.
200202
pub partition_key: Vec<String>,
203+
/// Names of the column of clustering key.
204+
/// All of the names are guaranteed to be present in `columns` field.
201205
pub clustering_key: Vec<String>,
202206
pub partitioner: Option<String>,
203207
}

0 commit comments

Comments
 (0)