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

Reads and writes business centres off of data storage. More...

#include <business_centre_repository.hpp>

Collaboration diagram for business_centre_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::business_centreread_latest (context ctx, std::uint32_t offset, std::uint32_t limit)
 Reads latest business centres with pagination support.
 
std::uint32_t get_total_business_centre_count (context ctx)
 Gets the total count of active business centres.
 
void remove (context ctx, const std::string &code)
 Deletes a business centre by closing its temporal validity.
 
void remove (context ctx, const std::vector< std::string > &codes)
 Deletes business centres by closing their temporal validity.
 
void write (context ctx, const domain::business_centre &bc)
 Writes business centres to database.
 
void write (context ctx, const std::vector< domain::business_centre > &bcs)
 
std::vector< domain::business_centreread_latest (context ctx)
 Reads latest business centres, possibly filtered by code.
 
std::vector< domain::business_centreread_latest (context ctx, const std::string &code)
 
std::vector< domain::business_centreread_at_timepoint (context ctx, const std::string &as_of)
 Reads business centres at the supplied time point, possibly filtered by code.
 
std::vector< domain::business_centreread_at_timepoint (context ctx, const std::string &as_of, const std::string &code)
 
std::vector< domain::business_centreread_all (context ctx)
 Reads all business centres, possibly filtered by code.
 
std::vector< domain::business_centreread_all (context ctx, const std::string &code)
 

Detailed Description

Reads and writes business centres off of data storage.