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

Go to the source code of this file.

Classes

struct  relx::schema::unique
 UNIQUE constraint. More...
 
struct  relx::schema::primary_key
 PRIMARY KEY constraint. More...
 
struct  relx::schema::autoincrement
 AUTOINCREMENT constraint. More...
 
struct  relx::schema::identity< Start, Increment, MinValue, MaxValue, Cycle >
 IDENTITY constraint with configurable options. More...
 
struct  relx::schema::check< Expr >
 CHECK constraint. More...
 
struct  relx::schema::references< Table, Column >
 REFERENCES constraint for foreign keys. More...
 
struct  relx::schema::on_delete< Action >
 ON DELETE action for foreign keys. More...
 
struct  relx::schema::on_update< Action >
 ON UPDATE action for foreign keys. More...
 
struct  relx::schema::default_value< Value >
 DEFAULT value for non-string values. More...
 
struct  relx::schema::string_default< Value, IsLiteral >
 DEFAULT value for string literals. More...
 
struct  relx::schema::null_default
 NULL default for optional types. More...
 
struct  relx::schema::is_default_value_specialization< TypeParam >
 
struct  relx::schema::is_default_value_specialization< default_value< Value > >
 
struct  relx::schema::is_string_default_specialization< TypeParam >
 
struct  relx::schema::is_string_default_specialization< string_default< Value, IsLiteral > >
 
class  relx::schema::column< TableT, Name, T, Modifiers >
 Represents a column in a database table. More...
 
class  relx::schema::column< TableT, Name, std::optional< T >, Modifiers... >
 

Namespaces

namespace  relx
 relx database connection
 
namespace  relx::schema
 

Concepts

concept  relx::schema::ValidIdentityType
 Concept for valid identity types.
 

Functions

template<typename... Modifiers>
static std::string relx::schema::apply_modifiers ()
 Helper to apply all column modifiers to a SQL definition.