20#ifndef ORES_CONNECTIONS_REPOSITORY_SERVER_ENVIRONMENT_REPOSITORY_HPP
21#define ORES_CONNECTIONS_REPOSITORY_SERVER_ENVIRONMENT_REPOSITORY_HPP
25#include <boost/uuid/uuid.hpp>
26#include "ores.connections/domain/server_environment.hpp"
27#include "ores.connections/repository/sqlite_context.hpp"
29namespace ores::connections::repository {
31class server_environment_repository final {
33 explicit server_environment_repository(sqlite_context& ctx);
35 void write(
const domain::server_environment&
env);
36 void write(
const std::vector<domain::server_environment>& envs);
37 std::vector<domain::server_environment> read_all();
38 std::optional<domain::server_environment> read_by_id(
const boost::uuids::uuid&
id);
39 std::vector<domain::server_environment> read_by_folder(
40 const std::optional<boost::uuids::uuid>& folder_id);
41 void remove(
const boost::uuids::uuid&
id);
Utilities for reading environment variables.
Definition environment.hpp:31