|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
Check constraint that accepts a condition string at compile time. More...
#include <relx/schema/check_constraint.hpp>
Public Member Functions | |
| constexpr std::string | sql_definition () const |
| Get SQL definition for the CHECK constraint. | |
| constexpr std::string_view | condition () const |
| Get the condition as a string_view. | |
| constexpr std::string_view | name () const |
| Get the name as a string_view. | |
Check constraint that accepts a condition string at compile time.
Uses compile-time string literals to define the constraint condition
| Condition | The SQL condition as a fixed_string |
| Name | Optional name for the constraint |
Definition at line 17 of file check_constraint.hpp.
|
inlineconstexpr |
Get the condition as a string_view.
Definition at line 36 of file check_constraint.hpp.
|
inlineconstexpr |
Get the name as a string_view.
Definition at line 40 of file check_constraint.hpp.
|
inlineconstexpr |
Get SQL definition for the CHECK constraint.
Definition at line 21 of file check_constraint.hpp.