Chapter 7. Omar's Pantry
What databases are and how data is stored in them

Chapter title card with the chapter's host character and the day of the countdown.
What you'll learn in this chapter
- Explain why apps need a real database, not a spreadsheet or browser storage
- Describe tables, rows, columns, primary keys and foreign keys in plain words
- Read and write the five everyday SQL statements
- Know when you'd reach for NoSQL, object storage, vectors or a cache
- Create your first migration and replace QueueLess's hard-coded menu with real data
Inside
- Why not just a spreadsheet?
- Relational databases: shelves with labels
- Five SQL statements you'll use every week
- NoSQL: jars instead of shelves
- Omar's shelf rules
- Other stores in the pantry
- How data travels: from tap to shelf and back
- Migrations: changing the shelves safely
- Lab: build QueueLess's first real shelves
- More prompts for your pantry
- What you've learned
Checking your ticket at the door…