|
ORE Studio 0.0.4
|
Reads and writes job definitions to data storage. More...
#include <job_definition_repository.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| std::string | sql () |
| void | write (context ctx, const domain::job_definition &v) |
| void | write (context ctx, const std::vector< domain::job_definition > &v) |
| std::vector< domain::job_definition > | read_latest (context ctx) |
| std::vector< domain::job_definition > | read_latest (context ctx, const std::string &id) |
| std::vector< domain::job_definition > | read_all (context ctx, const std::string &id) |
| std::vector< domain::job_definition > | read_all_active (context ctx) |
| Returns all active job definitions regardless of tenant. | |
| std::optional< domain::job_definition > | find_by_id (context ctx, const boost::uuids::uuid &id) |
| void | remove (context ctx, const std::string &id) |
Reads and writes job definitions to data storage.
| std::vector< domain::job_definition > read_all_active | ( | context | ctx | ) |
Returns all active job definitions regardless of tenant.
Used by the scheduler_loop to load all jobs it needs to fire.