fixed table_column naming consistency and added result_name method
This commit is contained in:
@@ -48,7 +48,7 @@ TEST_CASE("Create sql query data for entity with eager has one", "[query][entity
|
||||
|
||||
const auto it = scm.find(typeid(flight));
|
||||
REQUIRE(it != scm.end());
|
||||
const auto* col = it->second.table()[FLIGHT.id];
|
||||
const auto* col = it->second.table()["id"];
|
||||
REQUIRE(col);
|
||||
auto data = eqb.build<flight>(*col == _);
|
||||
|
||||
@@ -102,7 +102,7 @@ TEST_CASE("Create sql query data for entity with eager belongs to", "[query][ent
|
||||
|
||||
const auto it = scm.find(typeid(book));
|
||||
REQUIRE(it != scm.end());
|
||||
const auto* col = it->second.table()[BOOK.id];
|
||||
const auto* col = it->second.table()["id"];
|
||||
REQUIRE(col);
|
||||
auto data = eqb.build<book>(*col == _);
|
||||
|
||||
@@ -174,7 +174,7 @@ TEST_CASE("Create sql query data for entity with eager has many belongs to", "[q
|
||||
|
||||
const auto it = scm.find(typeid(order));
|
||||
REQUIRE(it != scm.end());
|
||||
const auto* col = it->second.table()[ORDER.order_id];
|
||||
const auto* col = it->second.table()["order_id"];
|
||||
REQUIRE(col);
|
||||
auto data = eqb.build<order>(*col == _);
|
||||
|
||||
@@ -238,7 +238,7 @@ TEST_CASE("Create sql query data for entity with eager many to many", "[query][e
|
||||
|
||||
const auto it = scm.find(typeid(ingredient));
|
||||
REQUIRE(it != scm.end());
|
||||
const auto* col = it->second.table()[INGREDIENT.id];
|
||||
const auto* col = it->second.table()["id"];
|
||||
REQUIRE(col);
|
||||
auto data = eqb.build<ingredient>(*col == _);
|
||||
|
||||
@@ -292,7 +292,7 @@ TEST_CASE("Create sql query data for entity with eager many to many (inverse par
|
||||
|
||||
const auto it = scm.find(typeid(course));
|
||||
REQUIRE(it != scm.end());
|
||||
const auto* col = it->second.table()[COURSE.id];
|
||||
const auto* col = it->second.table()["id"];
|
||||
REQUIRE(col);
|
||||
auto data = eqb.build<course>(*col == _);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user