template<auto Start = 1, auto Increment = 1, auto MinValue = std::numeric_limits<decltype(Start)>::min(), auto MaxValue = std::numeric_limits<decltype(Start)>::max(), bool Cycle = false>
requires ValidIdentityType<decltype(Start)> && ValidIdentityType<decltype(Increment)> && ValidIdentityType<decltype(MinValue)> && ValidIdentityType<decltype(MaxValue)>
struct relx::schema::identity< Start, Increment, MinValue, MaxValue, Cycle >
IDENTITY constraint with configurable options.
- Template Parameters
-
| Start | The starting value for the identity column |
| Increment | The increment value for the identity column |
| MinValue | The minimum value for the identity column |
| MaxValue | The maximum value for the identity column |
| Cycle | Whether to cycle back to MinValue when MaxValue is reached |
Definition at line 46 of file column.hpp.