renamed class attribute_definition to attribute

This commit is contained in:
Sascha Kühl
2025-11-21 09:22:00 +01:00
parent dae3c1645b
commit 758284c2b3
44 changed files with 490 additions and 491 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
#include <catch2/catch_test_macros.hpp>
#include "matador/object/attribute_definition.hpp"
#include "matador/object/attribute.hpp"
using namespace matador::object;
using namespace matador::utils;
TEST_CASE("Test create empty column", "[column]") {
attribute_definition c("name");
attribute c("name");
REQUIRE(c.name() == "name");
REQUIRE(c.index() == -1);
@@ -21,11 +21,11 @@ TEST_CASE("Test create empty column", "[column]") {
}
TEST_CASE("Test copy and move column", "[column]") {
attribute_definition c(
attribute c(
"name",
basic_type::type_varchar,
2,
std::make_shared<attribute_definition>("author", basic_type::type_uint32, "books", attribute_options{constraints::FOREIGN_KEY}),
std::make_shared<attribute>("author", basic_type::type_uint32, "books", attribute_options{constraints::FOREIGN_KEY}),
{255, constraints::FOREIGN_KEY},
null_option_type::NOT_NULL
);