20#ifndef ORES_TESTING_SCOPED_DATABASE_HELPER_HPP
21#define ORES_TESTING_SCOPED_DATABASE_HELPER_HPP
24#include "ores.testing/database_helper.hpp"
Testing infrastructure common to all test projects.
Definition database_helper.hpp:27
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:67
void seed_rbac()
Seeds minimal RBAC data for tests.
Definition database_helper.cpp:56
void truncate_table(const std::string &table_name)
Truncates the specified table.
Definition database_helper.cpp:35
Provides database setup and cleanup utilities for tests.
Definition scoped_database_helper.hpp:31
scoped_database_helper(const std::string &table_name, bool seed_rbac=false)
Constructs a scoped database helper.
Definition scoped_database_helper.hpp:39
database::context & context()
Gets the database context.
Definition scoped_database_helper.hpp:57
void seed_rbac()
Seeds minimal RBAC data for tests.
Definition scoped_database_helper.hpp:52