|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
Classes | |
| class | Cell |
| Represents a single cell value from a database result. More... | |
| struct | column_member_value |
| Helper to get the value type from a column member pointer. More... | |
| class | LazyCell |
| Lazy cell that defers parsing until accessed. More... | |
| class | LazyResultSet |
| Lazy result set that defers row parsing until accessed. More... | |
| class | LazyRow |
| Lazy row that defers cell parsing until accessed. More... | |
| struct | ResultError |
| Error type for result processing operations. More... | |
| class | ResultSet |
| Represents the result set from a database query. More... | |
| class | Row |
| Represents a single row from a database result. More... | |
| struct | RowAdapter |
| Class to support structured binding for ResultSet. More... | |
| struct | RowIterator |
| Iterator that yields RowAdapters. More... | |
| struct | RowsView |
| View class for structured binding support. More... | |
| class | StreamingResultSet |
| Streaming result set for very large datasets. More... | |
Typedefs | |
| template<typename T > | |
| using | ResultProcessingResult = std::expected< T, ResultError > |
| Type alias for result of processing operations. | |
| template<typename Table , typename ColumnMemberPtr > | |
| using | column_member_value_t = typename column_member_value< Table, ColumnMemberPtr >::type |
Functions | |
| template<query::SqlExpr Query> | |
| LazyResultSet | parse_lazy (const Query &, std::string raw_results) |
| Parse raw results from a database into a lazy ResultSet. | |
| template<typename T , typename C > | |
| static constexpr auto | class_of (T C::*) |
| Helper to get the class type from a member pointer. | |
| template<auto MemberPtr> | |
| constexpr std::string_view | get_column_name () |
| Gets the column name from a column member pointer. | |
| template<typename Table , typename ColumnMemberPtr > | |
| std::string | get_column_name_from_ptr (ColumnMemberPtr ptr) |
| Get column name from a member pointer. | |
| template<query::SqlExpr Query> | |
| ResultProcessingResult< ResultSet > | parse (const Query &, const std::string &raw_results) |
| Parse raw results from a database into a typed ResultSet (eager parsing) | |
| using relx::result::column_member_value_t = typedef typename column_member_value<Table, ColumnMemberPtr>::type |
Definition at line 58 of file result.hpp.
| using relx::result::ResultProcessingResult = typedef std::expected<T, ResultError> |
Type alias for result of processing operations.
Definition at line 33 of file result.hpp.
|
staticconstexpr |
Helper to get the class type from a member pointer.
Definition at line 37 of file result.hpp.
|
constexpr |
Gets the column name from a column member pointer.
Definition at line 43 of file result.hpp.
| std::string relx::result::get_column_name_from_ptr | ( | ColumnMemberPtr | ptr | ) |
Get column name from a member pointer.
Definition at line 62 of file result.hpp.
| ResultProcessingResult< ResultSet > relx::result::parse | ( | const Query & | , |
| const std::string & | raw_results | ||
| ) |
Parse raw results from a database into a typed ResultSet (eager parsing)
| Query | The query type |
| query | The query that was executed |
| raw_results | The raw results as CSV or similar format |
Definition at line 812 of file result.hpp.
| LazyResultSet relx::result::parse_lazy | ( | const Query & | , |
| std::string | raw_results | ||
| ) |
Parse raw results from a database into a lazy ResultSet.
| Query | The query type |
| query | The query that was executed |
| raw_results | The raw results as CSV or similar format |
Definition at line 406 of file lazy_result.hpp.