relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::schema::TableConcept Concept Reference

Concept for a database table type. More...

#include <relx/schema/table.hpp>

Concept definition

template<typename T>
concept relx::schema::TableConcept = requires {
{ T::table_name } -> std::convertible_to<std::string_view>;
requires std::is_const_v<std::remove_reference_t<decltype(T::table_name)>>;
}
Concept for a database table type.
Definition table.hpp:31

Detailed Description

Concept for a database table type.

Requires the type to have a static constexpr table_name member that is convertible to std::string_view. Example: static constexpr auto table_name = "users";

Definition at line 31 of file table.hpp.