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

Reads and writes data_domains to data storage. More...

#include <data_domain_repository.hpp>

Collaboration diagram for data_domain_repository:
Collaboration graph

Public Types

using context = ores::database::context
 

Public Member Functions

 data_domain_repository (context ctx)
 
std::string sql ()
 Returns the SQL created by sqlgen to construct the table.
 
std::vector< domain::data_domainread_latest (std::uint32_t offset, std::uint32_t limit)
 Reads latest data_domains with pagination support.
 
std::uint32_t get_total_count ()
 Gets the total count of active data_domains.
 
std::vector< domain::data_domainread_all (const std::string &name)
 Reads all historical versions of a data_domain by name.
 
void remove (const std::string &name)
 Deletes a data_domain by closing its temporal validity.
 
void write (const domain::data_domain &data_domain)
 Writes data_domains to database.
 
void write (const std::vector< domain::data_domain > &data_domains)
 
std::vector< domain::data_domainread_latest ()
 Reads latest data_domains, possibly filtered by name.
 
std::vector< domain::data_domainread_latest (const std::string &name)
 

Detailed Description

Reads and writes data_domains to data storage.