relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
check_constraint.hpp File Reference
#include "core.hpp"
#include "fixed_string.hpp"
#include "meta.hpp"
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

class  relx::schema::table_check_constraint< Condition, Name >
 Check constraint that accepts a condition string at compile time. More...
 
class  relx::schema::column_check_constraint< ColumnPtr, Condition, Name >
 Check constraint explicitly associated with a column. More...
 

Namespaces

namespace  relx
 relx database connection
 
namespace  relx::schema
 

Functions

template<fixed_string Condition, fixed_string Name>
constexpr auto relx::schema::named_check ()
 Helper function to create a named check constraint at compile time.
 
template<fixed_string Condition>
constexpr auto relx::schema::table_check ()
 Helper function to create an unnamed check constraint at compile time.
 
template<auto ColumnPtr, fixed_string Condition>
constexpr auto relx::schema::column_check ()
 Helper function to create a column-bound check constraint at compile time.
 
template<auto ColumnPtr, fixed_string Condition, fixed_string Name>
constexpr auto relx::schema::named_column_check ()
 Helper function to create a named column-bound check constraint at compile time.