|
ORE Studio 0.0.4
|
Reads and writes system settings from data storage. More...
#include <system_settings_repository.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| std::string | sql () |
| Returns the SQL created by sqlgen to construct the table. | |
| std::vector< domain::system_setting > | read_latest (context ctx, std::uint32_t offset, std::uint32_t limit) |
| Reads latest settings with pagination. | |
| std::uint32_t | get_total_count (context ctx) |
| Gets the total count of active settings. | |
| void | remove (context ctx, const std::string &name) |
| Logically deletes a setting by closing its temporal validity. | |
| void | write (context ctx, const domain::system_setting &setting) |
| Writes a system setting to the database. | |
| void | write (context ctx, const std::vector< domain::system_setting > &settings) |
| std::vector< domain::system_setting > | read_latest (context ctx) |
| Reads latest settings, possibly filtered by name. | |
| std::vector< domain::system_setting > | read_latest (context ctx, const std::string &name) |
| std::vector< domain::system_setting > | read_all (context ctx) |
| Reads all versions of settings, possibly filtered by name. | |
| std::vector< domain::system_setting > | read_all (context ctx, const std::string &name) |
Reads and writes system settings from data storage.