renamed schema to repository

This commit is contained in:
Sascha Kühl
2025-08-28 16:12:26 +02:00
parent cce7f2c099
commit 3ae2b003aa
45 changed files with 823 additions and 823 deletions
@@ -1,7 +1,7 @@
#include <catch2/catch_test_macros.hpp>
#include "matador/object/attribute_definition_generator.hpp"
#include "matador/object/schema.hpp"
#include "matador/object/repository.hpp"
#include "../test/models/product.hpp"
#include "../test/models/optional.hpp"
@@ -10,7 +10,7 @@ using namespace matador::object;
using namespace matador::utils;
TEST_CASE("Generate column definitions from object", "[column][definition][generator]") {
schema repo("main");
repository repo("main");
auto result = repo.attach<matador::test::product>("products")
.and_then([&repo] { return repo.attach<matador::test::supplier>("supplier"); })
@@ -41,7 +41,7 @@ TEST_CASE("Generate column definitions from object", "[column][definition][gener
}
TEST_CASE("Generate columns from object with nullable columns", "[column generator]") {
schema repo("main");
repository repo("main");
auto columns = attribute_definition_generator::generate<matador::test::optional>(repo);
+6 -6
View File
@@ -1,6 +1,6 @@
#include <catch2/catch_test_macros.hpp>
#include "matador/object/schema.hpp"
#include "matador/object/repository.hpp"
#include "../../models/department.hpp"
@@ -28,13 +28,13 @@ struct names {
};
TEST_CASE("Test empty prototype tree", "[schema_node][empty]") {
const object::schema tree;
const object::repository tree;
REQUIRE( tree.empty() );
}
TEST_CASE("Test add type to prototype tree", "[schema_node][add]") {
object::schema tree;
object::repository tree;
REQUIRE( tree.empty() );
@@ -50,7 +50,7 @@ TEST_CASE("Test add type to prototype tree", "[schema_node][add]") {
}
TEST_CASE("Test next and previous of schema node", "[schema_node][next][previous]") {
object::schema tree;
object::repository tree;
REQUIRE( tree.empty() );
@@ -66,7 +66,7 @@ TEST_CASE("Test next and previous of schema node", "[schema_node][next][previous
}
TEST_CASE("Test automatic creating of a relation table with foreign key", "[schema][relation_table][foreign_key]") {
object::schema tree;
object::repository tree;
REQUIRE( tree.empty() );
@@ -75,7 +75,7 @@ TEST_CASE("Test automatic creating of a relation table with foreign key", "[sche
}
TEST_CASE("Test automatic creating of a relation table with values", "[schema][relation_table][values]") {
object::schema tree;
object::repository tree;
REQUIRE( tree.empty() );