mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
schema: Introduce column_definition::is_regular()
This commit is contained in:
@@ -40,6 +40,7 @@ public:
|
||||
column_kind kind;
|
||||
::shared_ptr<cql3::column_specification> column_specification;
|
||||
bool is_static() const { return kind == column_kind::STATIC; }
|
||||
bool is_regular() const { return kind == column_kind::REGULAR; }
|
||||
bool is_partition_key() const { return kind == column_kind::PARTITION; }
|
||||
bool is_clustering_key() const { return kind == column_kind::CLUSTERING; }
|
||||
bool is_primary_key() const { return kind == column_kind::PARTITION || kind == column_kind::CLUSTERING; }
|
||||
|
||||
Reference in New Issue
Block a user