20#ifndef ORES_DATABASE_SERVICE_PARTY_CONTEXT_HPP
21#define ORES_DATABASE_SERVICE_PARTY_CONTEXT_HPP
24#include <boost/uuid/uuid.hpp>
25#include "ores.database/domain/context.hpp"
26#include "ores.utility/uuid/tenant_id.hpp"
62 const boost::uuids::uuid& party,
63 const std::string& actor =
"");
Database service layer.
Definition ores.database.service.hpp:28
Context for the operations on a postgres database.
Definition context.hpp:47
Manages party context for party-isolated database operations.
Definition party_context.hpp:42
static context with_party(const context &ctx, const utility::uuid::tenant_id &tenant, const boost::uuids::uuid &party, const std::string &actor="")
Creates a new context with tenant and party isolation.
Definition party_context.cpp:75
A strongly-typed wrapper around a UUID representing a tenant identifier.
Definition tenant_id.hpp:66