|
ORE Studio 0.0.4
|
Provides database setup and cleanup utilities for tests. More...
#include <scoped_database_helper.hpp>

Public Member Functions | |
| scoped_database_helper (const std::string &table_name, bool seed_rbac=false) | |
| Constructs a scoped database helper. | |
| void | seed_rbac () |
| Seeds minimal RBAC data for tests. | |
| database::context & | context () |
| Gets the database context. | |
Provides database setup and cleanup utilities for tests.
|
explicit |
Constructs a scoped database helper.
| table_name | Fully qualified table name to truncate (e.g., "ores.accounts") |
| seed_rbac | If true, seeds minimal RBAC data (Admin role with wildcard permission) |
| void seed_rbac | ( | ) |
Seeds minimal RBAC data for tests.
Call this if you need RBAC data but didn't pass seed_rbac=true to constructor.
