WIP: Новые таблицы и изменение старых структур #6

Draft
alex wants to merge 12 commits from Новые-таблицы into master
Showing only changes of commit 8cb56837f5 - Show all commits

View File

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