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<typename T::Row>::value >= 0; // Ensures 'row' is a tuple
// Check that static constexpr members 'partitionKey' and 'tableName' exist
{ T::kPARTITION_KEY } -> std::convertible_to<char const*>;
{ T::kTABLE_NAME } -> std::convertible_to<char const*>;
}