implemented lazy loading for object_ptr and belongs_to
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user