Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
migration::cassandra::impl::TableSpec Concept Reference

Concept definition

template<typename T>
concept TableSpec = requires {
// Check that 'row' exists and is a tuple
// keys types are at the beginning and the other fields types sort in alphabetical order
typename T::Row;
requires std::tuple_size_v<typename T::Row> >= 0; // Ensures 'row' is a tuple
// Check that static constexpr members 'partitionKey' and 'tableName' exist
{ T::kPartitionKey } -> std::convertible_to<char const*>;
{ T::kTableName } -> std::convertible_to<char const*>;
}