renamed basic_types enumerations

This commit is contained in:
2025-12-08 20:04:04 +01:00
parent d4ef97ef5a
commit 108eca4e53
26 changed files with 302 additions and 302 deletions
+7 -7
View File
@@ -9,19 +9,19 @@ TEST_CASE("Test create empty column", "[column]") {
attribute c("name");
REQUIRE(c.name() == "name");
REQUIRE(c.type() == basic_type::type_null);
REQUIRE(c.type() == basic_type::Null);
c.change_type<std::string>(255);
REQUIRE(c.type() == basic_type::type_varchar);
REQUIRE(c.type() == basic_type::Varchar);
c.change_type<int32_t>(7);
REQUIRE(c.type() == basic_type::type_int32);
REQUIRE(c.type() == basic_type::Int32);
}
TEST_CASE("Test copy and move column", "[column]") {
attribute c(
"name",
basic_type::type_varchar,
basic_type::Varchar,
// 2,
// std::make_shared<attribute>("author", basic_type::type_uint32, "books", attribute_options{constraints::ForeignKey}),
{255, constraints::ForeignKey},
@@ -32,7 +32,7 @@ TEST_CASE("Test copy and move column", "[column]") {
// REQUIRE(c.reference_column());
// REQUIRE(c.reference_column()->name() == "author");
// REQUIRE(c.reference_column()->table_name() == "books");
REQUIRE(c.type() == basic_type::type_varchar);
REQUIRE(c.type() == basic_type::Varchar);
REQUIRE(c.attributes().size() == 255);
auto c2 = c;
@@ -41,7 +41,7 @@ TEST_CASE("Test copy and move column", "[column]") {
// REQUIRE(c2.reference_column());
// REQUIRE(c2.reference_column()->name() == "author");
// REQUIRE(c2.reference_column()->table_name() == "books");
REQUIRE(c2.type() == basic_type::type_varchar);
REQUIRE(c2.type() == basic_type::Varchar);
REQUIRE(c2.attributes().size() == 255);
auto c3 = std::move(c2);
@@ -50,7 +50,7 @@ TEST_CASE("Test copy and move column", "[column]") {
// REQUIRE(c3.reference_column());
// REQUIRE(c3.reference_column()->name() == "author");
// REQUIRE(c3.reference_column()->table_name() == "books");
REQUIRE(c3.type() == basic_type::type_varchar);
REQUIRE(c3.type() == basic_type::Varchar);
REQUIRE(c3.attributes().size() == 255);
REQUIRE(c2.name().empty());