relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
date_concepts.hpp File Reference
#include "../schema/column.hpp"
#include <chrono>
#include <optional>
#include <type_traits>

Go to the source code of this file.

Classes

struct  relx::query::date_checking::remove_optional< T >
 Remove optional wrapper to get base type. More...
 
struct  relx::query::date_checking::remove_optional< std::optional< T > >
 
struct  relx::query::date_checking::is_time_point< T >
 Helper to check if a type is a time_point of any clock. More...
 
struct  relx::query::date_checking::is_time_point< std::chrono::time_point< Clock, Duration > >
 
struct  relx::query::date_checking::extract_column_type< T >
 Helper to extract column type for checking. More...
 
struct  relx::query::date_checking::extract_column_type< schema::column< TableT, Name, ColumnT, Modifiers... > >
 

Namespaces

namespace  relx
 relx database connection
 
namespace  relx::query
 
namespace  relx::query::date_checking
 Type checking concepts for date/time operations.
 

Concepts

concept  relx::query::date_checking::DateTimeType
 Check if a type is a date/time type.
 
concept  relx::query::date_checking::DateTimeColumn
 Check if type is a date/time type (unwrapping optional)
 

Typedefs

template<typename T >
using relx::query::date_checking::remove_optional_t = typename remove_optional< T >::type
 
template<typename T >
using relx::query::date_checking::extract_column_type_t = typename extract_column_type< T >::type
 

Variables

template<typename T >
constexpr bool relx::query::date_checking::is_time_point_v = is_time_point<T>::value