ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
system_settings_repository Class Reference

Reads and writes system settings from data storage. More...

#include <system_settings_repository.hpp>

Collaboration diagram for system_settings_repository:
Collaboration graph

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_settingread_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_settingread_latest (context ctx)
 Reads latest settings, possibly filtered by name.
 
std::vector< domain::system_settingread_latest (context ctx, const std::string &name)
 
std::vector< domain::system_settingread_all (context ctx)
 Reads all versions of settings, possibly filtered by name.
 
std::vector< domain::system_settingread_all (context ctx, const std::string &name)
 

Detailed Description

Reads and writes system settings from data storage.