relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
table.hpp File Reference
#include "column.hpp"
#include "fixed_string.hpp"
#include <optional>
#include <string>
#include <string_view>
#include <tuple>
#include <unordered_set>
#include <utility>
#include <vector>
#include <boost/pfr.hpp>

Go to the source code of this file.

Classes

class  relx::schema::create_table< Table >
 Generate CREATE TABLE SQL statement for a table struct. More...
 
class  relx::schema::drop_table< Table >
 Generate DROP TABLE SQL statement for a table struct. More...
 

Namespaces

namespace  relx
 relx database connection
 
namespace  relx::schema
 

Concepts

concept  relx::schema::is_column
 Helper to detect column members in a table.
 
concept  relx::schema::TableConcept
 Concept for a database table type.
 
concept  relx::schema::is_constraint
 Helper to detect constraint members in a table.
 

Functions

template<TableConcept Table>
std::string relx::schema::collect_column_definitions (const Table &table_instance)
 Generate SQL column definitions from a table struct using Boost PFR.
 
template<TableConcept Table>
std::string relx::schema::collect_constraint_definitions (const Table &table_instance)
 Generate SQL constraint definitions from a table struct.