20#ifndef ORES_TESTING_DATABASE_HELPER_HPP
21#define ORES_TESTING_DATABASE_HELPER_HPP
24#include "ores.utility/log/make_logger.hpp"
25#include "ores.database/domain/context.hpp"
34 inline static std::string_view logger_name =
35 "ores.testing.database_helper";
39 static auto instance = make_logger(logger_name);
Testing infrastructure common to all test projects.
Definition database_helper.hpp:27
Implements logging for ORE Studio.
Definition lifecycle_manager.hpp:30
Context for the operations on a postgres database.
Definition context.hpp:30
Provides database setup and cleanup utilities for tests.
Definition database_helper.hpp:32
database::context & context()
Gets the database context.
Definition database_helper.hpp:56
void truncate_table(const std::string &table_name)
Truncates the specified table.
Definition database_helper.cpp:32