20#ifndef ORES_CONNECTIONS_REPOSITORY_TAG_REPOSITORY_HPP
21#define ORES_CONNECTIONS_REPOSITORY_TAG_REPOSITORY_HPP
25#include <boost/uuid/uuid.hpp>
26#include "ores.connections/domain/tag.hpp"
27#include "ores.connections/repository/sqlite_context.hpp"
29namespace ores::connections::repository {
31class tag_repository final {
33 explicit tag_repository(sqlite_context& ctx);
35 void write(
const domain::tag& t);
36 void write(
const std::vector<domain::tag>& tags);
37 std::vector<domain::tag> read_all();
38 std::optional<domain::tag> read_by_id(
const boost::uuids::uuid&
id);
39 std::optional<domain::tag> read_by_name(
const std::string& name);
40 void remove(
const boost::uuids::uuid&
id);