For this example, we are going to work with an in-memory database, which will make things simpler for us. In the source code of the book, I have left a couple of comments to show you how to generate a SQLite file, so I hope you'll explore that option as well.
Before we dive into the code, allow me to briefly introduce the concept of a relational database.
A relational database is a database that allows you to save data following the relational model, invented in 1969 by Edgar F. Codd. ...