|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
RAII wrapper for test database setup/teardown. More...
#include <database_test_utils.h>

Public Member Functions | |
| scoped_test_database (mock_database &db) | |
| ~scoped_test_database () | |
| mock_database & | get () |
| const mock_database & | get () const |
Private Attributes | |
| mock_database & | db_ |
RAII wrapper for test database setup/teardown.
Definition at line 88 of file database_test_utils.h.
|
inlineexplicit |
Definition at line 90 of file database_test_utils.h.
References database::core::connection_config::database, db_, database::core::connection_config::host, database::testing::mock_database::initialize(), and database::core::connection_config::port.

|
inline |
Definition at line 100 of file database_test_utils.h.
References db_, database::testing::mock_database::reset(), and database::testing::mock_database::shutdown().

|
inline |
|
inline |
|
private |
Definition at line 109 of file database_test_utils.h.
Referenced by get(), get(), scoped_test_database(), and ~scoped_test_database().