In the previous article, we explored how to build our first CRUD API using FastAPI. While our API worked correctly, there was one major problem.
We were storing data inside Python lists, which exist only in memory.
If you've ever wondered how applications like Instagram, LinkedIn, or ChatGPT remember information even after a server restart, the answer is simple: databases.
In this article, we'll solve the problem of in-memory storage by connecting our FastAPI application to SQLite using SQLAlchemy.
If you haven't read the previous post, check it out:






