20#ifndef ORES_DQ_REPOSITORY_ARTEFACT_TYPE_REPOSITORY_HPP
21#define ORES_DQ_REPOSITORY_ARTEFACT_TYPE_REPOSITORY_HPP
26#include <sqlgen/postgres.hpp>
27#include "ores.logging/make_logger.hpp"
28#include "ores.database/domain/context.hpp"
29#include "ores.dq/domain/artefact_type.hpp"
31namespace ores::dq::repository {
41 inline static std::string_view logger_name =
42 "ores.dq.repository.artefact_type_repository";
44 [[nodiscard]]
static auto& lg() {
46 static auto instance = make_logger(logger_name);
57 std::vector<domain::artefact_type> read_all();
58 std::optional<domain::artefact_type> read_by_code(
const std::string& code);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Context for the operations on a postgres database.
Definition context.hpp:30
Reads artefact_types from data storage.
Definition artefact_type_repository.hpp:39