20#ifndef ORES_DQ_SERVICE_DATASET_BUNDLE_SERVICE_HPP
21#define ORES_DQ_SERVICE_DATASET_BUNDLE_SERVICE_HPP
26#include <boost/uuid/uuid.hpp>
27#include "ores.logging/make_logger.hpp"
28#include "ores.database/domain/context.hpp"
29#include "ores.dq/domain/dataset_bundle.hpp"
30#include "ores.dq/repository/dataset_bundle_repository.hpp"
32namespace ores::dq::service {
42 inline static std::string_view logger_name =
43 "ores.dq.service.dataset_bundle_service";
45 [[nodiscard]]
static auto& lg() {
47 static auto instance = make_logger(logger_name);
69 std::optional<domain::dataset_bundle>
75 std::optional<domain::dataset_bundle>
98 std::vector<domain::dataset_bundle>
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Context for the operations on a postgres database.
Definition context.hpp:30
A named collection of datasets designed to work together.
Definition dataset_bundle.hpp:41
Reads and writes dataset bundles to data storage.
Definition dataset_bundle_repository.hpp:36
Service for managing dataset bundles.
Definition dataset_bundle_service.hpp:40
void remove_bundle(const boost::uuids::uuid &id)
Removes a dataset bundle.
Definition dataset_bundle_service.cpp:66
std::vector< domain::dataset_bundle > get_bundle_history(const boost::uuids::uuid &id)
Gets the version history for a dataset bundle.
Definition dataset_bundle_service.cpp:73
std::optional< domain::dataset_bundle > find_bundle_by_code(const std::string &code)
Finds a dataset bundle by its code.
Definition dataset_bundle_service.cpp:48
std::vector< domain::dataset_bundle > list_bundles()
Lists all dataset bundles.
Definition dataset_bundle_service.cpp:32
std::optional< domain::dataset_bundle > find_bundle(const boost::uuids::uuid &id)
Finds a dataset bundle by its ID.
Definition dataset_bundle_service.cpp:38
void save_bundle(const domain::dataset_bundle &bundle)
Saves a dataset bundle (creates or updates).
Definition dataset_bundle_service.cpp:57