ORE Studio 0.0.4
Loading...
Searching...
No Matches
publication_result.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2025 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 *
19 */
20#ifndef ORES_DQ_DOMAIN_PUBLICATION_RESULT_HPP
21#define ORES_DQ_DOMAIN_PUBLICATION_RESULT_HPP
22
23#include <cstdint>
24#include <string>
25#include <boost/uuid/uuid.hpp>
26
27namespace ores::dq::domain {
28
35struct publication_result final {
39 boost::uuids::uuid dataset_id;
40
46 std::string dataset_code;
47
51 std::string dataset_name;
52
58 std::string target_table;
59
63 std::uint64_t records_inserted = 0;
64
71 std::uint64_t records_updated = 0;
72
79 std::uint64_t records_skipped = 0;
80
86 std::uint64_t records_deleted = 0;
87
91 bool success = true;
92
96 std::string error_message;
97};
98
99}
100
101#endif
Result of publishing a single dataset to a target table.
Definition publication_result.hpp:35
std::uint64_t records_inserted
Number of records inserted during publication.
Definition publication_result.hpp:63
std::uint64_t records_skipped
Number of records skipped during publication.
Definition publication_result.hpp:79
std::string dataset_name
Human-readable name of the dataset.
Definition publication_result.hpp:51
std::string target_table
Name of the production table that received the data.
Definition publication_result.hpp:58
bool success
Whether the publication succeeded.
Definition publication_result.hpp:91
std::string error_message
Error message if publication failed.
Definition publication_result.hpp:96
std::uint64_t records_deleted
Number of records deleted during publication.
Definition publication_result.hpp:86
std::string dataset_code
Code of the dataset that was published.
Definition publication_result.hpp:46
std::uint64_t records_updated
Number of records updated during publication.
Definition publication_result.hpp:71
boost::uuids::uuid dataset_id
ID of the dataset that was published.
Definition publication_result.hpp:39