|
ORE Studio 0.0.4
|
Reads and writes change_reason_categories to data storage. More...
#include <change_reason_category_repository.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| change_reason_category_repository (context ctx) | |
| std::string | sql () |
| Returns the SQL created by sqlgen to construct the table. | |
| std::vector< domain::change_reason_category > | read_latest (std::uint32_t offset, std::uint32_t limit) |
| Reads latest change_reason_categories with pagination support. | |
| std::uint32_t | get_total_count () |
| Gets the total count of active change_reason_categories. | |
| std::vector< domain::change_reason_category > | read_all (const std::string &code) |
| Reads all historical versions of a change_reason_category by code. | |
| void | remove (const std::string &code) |
| Deletes a change_reason_category by closing its temporal validity. | |
| void | write (const domain::change_reason_category &category) |
| Writes change_reason_categories to database. | |
| void | write (const std::vector< domain::change_reason_category > &categories) |
| std::vector< domain::change_reason_category > | read_latest () |
| Reads latest change_reason_categories, possibly filtered by code. | |
| std::vector< domain::change_reason_category > | read_latest (const std::string &code) |
Reads and writes change_reason_categories to data storage.
| std::vector< domain::change_reason_category > read_latest | ( | std::uint32_t | offset, |
| std::uint32_t | limit | ||
| ) |
Reads latest change_reason_categories with pagination support.
| offset | Number of records to skip |
| limit | Maximum number of records to return |
| std::uint32_t get_total_count | ( | ) |
Gets the total count of active change_reason_categories.

| std::vector< domain::change_reason_category > read_all | ( | const std::string & | code | ) |
Reads all historical versions of a change_reason_category by code.
| code | The category code to look up |
