# What a Database Is, and Why SQLite

A JSON file loses changes when two people save at once and has to be read whole to find one item, so an API keeps its data in a database of tables, rows and columns, and Python's built-in sqlite3 module opens a whole SQLite database stored in one file.

![Cheat sheet: What a Database Is, and Why SQLite](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7ae06bcd49154478964233d025d23699.webp)

- Category: FastAPI
- Level: Apprentice
- Tags: Column, database, Primary Key, Row, sql, sqlite, Table
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/fastapi-sqlite-what-a-database-is-cheat-sheet
