|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
Check constraint explicitly associated with a column. More...
#include <relx/schema/check_constraint.hpp>
Public Member Functions | |
| constexpr std::string | sql_definition () const |
| Get SQL definition for the column-specific 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. | |
| std::string_view | column_name () const |
| Get the associated column name. | |
Check constraint explicitly associated with a column.
Uses compile-time string literals for the condition and binds to a specific column
| ColumnPtr | Pointer to the column to which the constraint applies |
| Condition | The SQL condition as a fixed_string |
| Name | Optional name for the constraint |
Definition at line 49 of file check_constraint.hpp.
|
inline |
Get the associated column name.
Definition at line 81 of file check_constraint.hpp.
|
inlineconstexpr |
Get the condition as a string_view.
Definition at line 73 of file check_constraint.hpp.
|
inlineconstexpr |
Get the name as a string_view.
Definition at line 77 of file check_constraint.hpp.
|
inlineconstexpr |
Get SQL definition for the column-specific CHECK constraint.
Definition at line 53 of file check_constraint.hpp.