<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Databases with SQLModel on DATATWEETS</title><link>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/</link><description>Recent content in Databases with SQLModel on DATATWEETS</description><generator>Hugo</generator><language>en</language><copyright>Copyright (c) 2025 Datatweets</copyright><lastBuildDate>Sun, 28 Jun 2026 09:00:00 +0200</lastBuildDate><atom:link href="https://datatweets.com/courses/fastapi/databases-with-sqlmodel/index.xml" rel="self" type="application/rss+xml"/><item><title>Lesson 1 - Connecting a Database</title><link>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-1-connecting-a-database/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-1-connecting-a-database/</guid><description>Meet SQLModel and connect a real database. Create an engine pointed at a SQLite file, create your tables, and provide a database session to endpoints with a yield dependency — the foundation for storage that survives restarts.</description></item><item><title>Lesson 2 - Models and Tables</title><link>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-2-models-and-tables/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-2-models-and-tables/</guid><description>One class becomes a database table. Define a table model with table=True and a primary key, then separate it from the schemas clients use — a base model, a create schema, and an all-optional update schema.</description></item><item><title>Lesson 3 - CRUD: Create and Read</title><link>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-3-crud-create-and-read/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-3-crud-create-and-read/</guid><description>The first half of CRUD, against a real database. Create rows with model_validate plus add/commit/refresh, read one with session.get and a 404, and list many with a paginated select.</description></item><item><title>Lesson 4 - CRUD: Update and Delete</title><link>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-4-crud-update-and-delete/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-4-crud-update-and-delete/</guid><description>Complete the CRUD set. Use PATCH with exclude_unset for true partial updates, delete rows cleanly with a 204 and proper 404s, and meet table relationships with a foreign key.</description></item><item><title>Lesson 5 - Guided Project: Persistent Tasks API</title><link>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-5-guided-project-persistent-tasks-api/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/databases-with-sqlmodel/lesson-5-guided-project-persistent-tasks-api/</guid><description>The fifth version of the course project, and a milestone: a Tasks API backed by SQLite with full create, read, update, and delete. Data finally persists — reopen the database file and your tasks are still there.</description></item></channel></rss>