|
ORE Studio 0.0.4
|
Service for managing datasets and methodologies. More...
#include <dataset_service.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| dataset_service (context ctx) | |
| Constructs a dataset_service with required repositories. | |
| std::vector< domain::dataset > | list_datasets () |
| Lists all datasets. | |
| std::vector< domain::dataset > | list_datasets (std::uint32_t offset, std::uint32_t limit) |
| Lists datasets with pagination. | |
| std::uint32_t | get_dataset_count () |
| Gets the total count of active datasets. | |
| std::optional< domain::dataset > | find_dataset (const boost::uuids::uuid &id) |
| Finds a dataset by its ID. | |
| void | save_dataset (const domain::dataset &dataset) |
| Saves a dataset (creates or updates). | |
| void | remove_dataset (const boost::uuids::uuid &id) |
| Removes a dataset. | |
| std::vector< domain::dataset > | get_dataset_history (const boost::uuids::uuid &id) |
| Gets the version history for a dataset. | |
| std::vector< domain::methodology > | list_methodologies () |
| Lists all methodologies. | |
| std::vector< domain::methodology > | list_methodologies (std::uint32_t offset, std::uint32_t limit) |
| Lists methodologies with pagination. | |
| std::uint32_t | get_methodology_count () |
| Gets the total count of active methodologies. | |
| std::optional< domain::methodology > | find_methodology (const boost::uuids::uuid &id) |
| Finds a methodology by its ID. | |
| void | save_methodology (const domain::methodology &methodology) |
| Saves a methodology (creates or updates). | |
| void | remove_methodology (const boost::uuids::uuid &id) |
| Removes a methodology. | |
| std::vector< domain::methodology > | get_methodology_history (const boost::uuids::uuid &id) |
| Gets the version history for a methodology. | |
Service for managing datasets and methodologies.
This service provides functionality for:
|
explicit |
Constructs a dataset_service with required repositories.
| ctx | The database context. |
| void save_dataset | ( | const domain::dataset & | dataset | ) |
Saves a dataset (creates or updates).
| dataset | The dataset to save |
| void remove_dataset | ( | const boost::uuids::uuid & | id | ) |
Removes a dataset.
| id | The ID of the dataset to remove |
| std::vector< domain::dataset > get_dataset_history | ( | const boost::uuids::uuid & | id | ) |
Gets the version history for a dataset.
| id | The dataset ID |
| void save_methodology | ( | const domain::methodology & | methodology | ) |
Saves a methodology (creates or updates).
| methodology | The methodology to save |
| void remove_methodology | ( | const boost::uuids::uuid & | id | ) |
Removes a methodology.
| id | The ID of the methodology to remove |
| std::vector< domain::methodology > get_methodology_history | ( | const boost::uuids::uuid & | id | ) |
Gets the version history for a methodology.
| id | The methodology ID |