relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::query::SchemaTableAdapter< T > Class Template Reference

Adapter to convert schema::table to work with query builder This maintains table name and enables column access with SQL expression support. More...

#include <relx/query/schema_adapter.hpp>

Public Member Functions

 SchemaTableAdapter (const T &table)
 
template<ColumnType C>
auto get_column (const C &col) const
 Get a column from this table as a SQL expression.
 
const T & schema_table () const
 

Static Public Attributes

static constexpr auto table_name = T::table_name
 

Detailed Description

template<TableType T>
class relx::query::SchemaTableAdapter< T >

Adapter to convert schema::table to work with query builder This maintains table name and enables column access with SQL expression support.

Definition at line 62 of file schema_adapter.hpp.

Constructor & Destructor Documentation

◆ SchemaTableAdapter()

template<TableType T>
relx::query::SchemaTableAdapter< T >::SchemaTableAdapter ( const T &  table)
inlineexplicit

Definition at line 66 of file schema_adapter.hpp.

Member Function Documentation

◆ get_column()

template<TableType T>
template<ColumnType C>
auto relx::query::SchemaTableAdapter< T >::get_column ( const C &  col) const
inline

Get a column from this table as a SQL expression.

Definition at line 70 of file schema_adapter.hpp.

◆ schema_table()

template<TableType T>
const T & relx::query::SchemaTableAdapter< T >::schema_table ( ) const
inline

Definition at line 74 of file schema_adapter.hpp.

Member Data Documentation

◆ table_name

template<TableType T>
constexpr auto relx::query::SchemaTableAdapter< T >::table_name = T::table_name
staticconstexpr

Definition at line 64 of file schema_adapter.hpp.


The documentation for this class was generated from the following file: