Skip to content

Commit

Permalink
test simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
fnc12 committed Nov 8, 2024
1 parent 1231e84 commit 9a7a760
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/constraints/foreign_key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,23 +204,8 @@ TEST_CASE("Foreign key with inheritance") {
Student student = {0, "Alice", 20, "High School"};
int student_id = storage.insert(student);

// try
// {

// Create and insert a Classroom record with foreign keys
Classroom classroom = {0, teacher_id, student_id, "Room A"};
storage.insert(classroom);
// }
// catch (std::exception& ex)
// {
// auto s = ex.what();
// }

// Fetch and display inserted Classroom with foreign key references
auto classrooms = storage.get_all<Classroom>();
for(const auto& c: classrooms) {
// std::cout << "Classroom: " << c.room_name << ", Teacher ID: " << c.teacher_id
// << ", Student ID: " << c.student_id << "\n";
}
}
#endif

0 comments on commit 9a7a760

Please sign in to comment.