moved schema to query namespace
This commit is contained in:
@@ -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"); });
|
||||
|
||||
@@ -7,7 +7,7 @@ add_executable(CoreTests
|
||||
logger/LoggerTest.cpp
|
||||
object/ObjectTest.cpp
|
||||
object/PrimaryKeyResolverTest.cpp
|
||||
object/SchemaTest.cpp
|
||||
object/RepositoryTest.cpp
|
||||
utils/BasicTypeToVisitorTest.cpp
|
||||
utils/ConvertTest.cpp
|
||||
utils/DefaultTypeTraitsTest.cpp
|
||||
|
||||
Reference in New Issue
Block a user