20#ifndef ORES_DQ_CORE_REPOSITORY_BADGE_MAPPING_REPOSITORY_HPP
21#define ORES_DQ_CORE_REPOSITORY_BADGE_MAPPING_REPOSITORY_HPP
24#include <sqlgen/postgres.hpp>
25#include "ores.logging/make_logger.hpp"
26#include "ores.database/domain/context.hpp"
27#include "ores.dq.api/messaging/badge_protocol.hpp"
29namespace ores::dq::repository {
39 inline static std::string_view logger_name =
40 "ores.dq.repository.badge_mapping_repository";
42 [[nodiscard]]
static auto& lg() {
44 static auto instance = make_logger(logger_name);
56 std::vector<messaging::badge_mapping>
read_all();
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Context for the operations on a postgres database.
Definition context.hpp:47
Read-only repository for badge mappings.
Definition badge_mapping_repository.hpp:37
std::vector< messaging::badge_mapping > read_all()
Returns all active badge mappings for the current tenant.
Definition badge_mapping_repository.cpp:37