implemented lazy loading for object_ptr and belongs_to

This commit is contained in:
2026-01-15 12:40:54 +01:00
parent db8e137c11
commit 7626331866
81 changed files with 1790 additions and 927 deletions
+6 -4
View File
@@ -7,13 +7,15 @@
namespace matador::test {
SessionFixture::SessionFixture()
: pool(connection::dns, 4)
, ses({bus, pool}, schema) {}
: ses({bus, connection::dns, 4}, schema)
, db(connection::dns) {
REQUIRE(db.open());
}
SessionFixture::~SessionFixture() {
const auto conn = pool.acquire();
const auto result = schema.drop(*conn);
const auto result = schema.drop(db);
REQUIRE(result.is_ok());
REQUIRE(db.close());
}
void SessionFixture::drop_table_if_exists(const std::string &table_name) const {