Пара кастомных книжек

This commit is contained in:
2025-08-05 00:09:46 +05:00
parent 96bdf1e5e8
commit 8cb56837f5

View File

@@ -40,6 +40,8 @@ void fillBooksBD(uDBase& db)
Author_S("Isaac Asimov", "ru"),
};
addBook(*db, "Очень странная книжка", { "Автор 1", "Автор 2", "Авторк 3" });
addBook(*db, "1984", { authors[0].fullName() });
addBook(*db, "Harry Potter and the Philosopher's Stone", { authors[1].fullName() });
addBook(*db, "The Hobbit", { authors[2].fullName() });
@@ -94,6 +96,8 @@ void fillBooksBD(uDBase& db)
addBook(*db, "1984", { "George Orwell" });
addBook(*db, "Harry Potter and the Philosopher's Stone", { "J.K. Rowling" });
addBook(*db, "Очень странная книжка 2", { "Автор 4", "Авторк 3" });
std::cout << "Test data added successfully." << std::endl;
}
catch (const odb::exception& e)