20#ifndef ORES_CONNECTIONS_REPOSITORY_ENVIRONMENT_REPOSITORY_HPP
21#define ORES_CONNECTIONS_REPOSITORY_ENVIRONMENT_REPOSITORY_HPP
25#include <boost/uuid/uuid.hpp>
26#include "ores.connections/domain/environment.hpp"
27#include "ores.connections/repository/sqlite_context.hpp"
29namespace ores::connections::repository {
31class environment_repository final {
33 explicit environment_repository(sqlite_context& ctx);
35 void write(
const domain::environment&
env);
36 void write(
const std::vector<domain::environment>& envs);
37 std::vector<domain::environment> read_all();
38 std::optional<domain::environment> read_by_id(
const boost::uuids::uuid&
id);
39 std::vector<domain::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