lazy loading progress

This commit is contained in:
2025-08-19 07:30:23 +02:00
parent 1370eafac4
commit 18d21eb1c6
3 changed files with 15 additions and 14 deletions
@@ -280,14 +280,14 @@ void session_query_builder::on_foreign_object(const char *id, Pointer &, const u
sql::column{next->second, pk->name()}
);
} else {
// using namespace matador::utils;
// using namespace matador::query;
push(id);
using namespace matador::utils;
using namespace matador::query;
// create select query
// const auto result = matador::query::query::select<typename Pointer::value_type>(schema_)
// .from(*foreign_table)
// .where(sql::column(foreign_table, id, "") == _)
// .prepare();
const auto result = matador::query::query::select<typename Pointer::value_type>(schema_)
.from(*foreign_table)
.where(sql::column(foreign_table, id, "") == _)
.com;
}
}