moved schema to query namespace

This commit is contained in:
Sascha Kühl
2025-12-17 15:15:04 +01:00
parent 9eec5b64fb
commit 6307850721
6 changed files with 20 additions and 19 deletions
+3 -3
View File
@@ -5,7 +5,7 @@
#include "matador/sql/backend_provider.hpp"
#include "matador/sql/connection_pool.hpp"
#include "matador/orm/schema.hpp"
#include "matador/query/schema.hpp"
#include "../models/department.hpp"
#include "../models/recipe.hpp"
@@ -15,7 +15,7 @@ using namespace matador::test;
TEST_CASE_METHOD(SchemaFixture, "Test schema one-two-many", "[schema][one-to-many]") {
using namespace matador::test;
orm::schema repo(pool/*, "NoopSchema"*/);
query::schema repo(pool/*, "NoopSchema"*/);
auto result = repo.attach<department>("departments")
.and_then([&repo] { return repo.attach<employee>("employees"); });
@@ -38,7 +38,7 @@ TEST_CASE_METHOD(SchemaFixture, "Test schema one-two-many", "[schema][one-to-man
TEST_CASE_METHOD(SchemaFixture, "Test schema many-to-many", "[schema][many-to-many]") {
using namespace matador::test;
orm::schema repo(pool/*, "NoopSchema"*/);
query::schema repo(pool/*, "NoopSchema"*/);
auto result = repo.attach<recipe>("recipes")
.and_then([&repo] { return repo.attach<ingredient>("ingredients"); });