20#ifndef ORES_COMPUTE_REPOSITORY_PLATFORM_REPOSITORY_HPP
21#define ORES_COMPUTE_REPOSITORY_PLATFORM_REPOSITORY_HPP
24#include <sqlgen/postgres.hpp>
25#include "ores.logging/make_logger.hpp"
26#include "ores.database/domain/context.hpp"
27#include "ores.compute.api/domain/compute_platform.hpp"
29namespace ores::compute::repository {
31class platform_repository {
33 inline static std::string_view logger_name =
34 "ores.compute.repository.platform_repository";
36 [[nodiscard]]
static auto& lg() {
38 static auto instance = make_logger(logger_name);
45 std::vector<domain::compute_platform> read_active(context ctx);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Context for the operations on a postgres database.
Definition context.hpp:47