Learn SQLAlchemy ORM! In this tutorial, you will learn how to map Python classes to database tables, create relationships between models, and build a full project
tracker application.
What you will learn:
Creating a database engine with create_engine()
Defining models with DeclarativeBase and Column types
Creating and managing sessions with sessionmaker
Adding, querying, updating, and deleting records
Using filter_by() and filter() for queries
Defining one-to-many relationships with ForeignKey
Navigating relationships with back_populates
Seeding data through relationship assignment
Using session.get() for primary key lookups
Aggregate queries with func.count() and func.sum()
Joining tables with .join() and .group_by()
Wrapping ORM operations in reusable functions
Timestamps:
0:00 - Introduction
0:33 - ORM Basics Explained
1:00 - ORM Basics Demo
4:48 - ORM Relationships Explained
5:15 - ORM Relationships Demo
9:30 - Project Tracker Explained
9:57 - Project Tracker Demo
15:11 - Recap
15:51 - End
Source code: https://github.com/GoCelesteAI/python...
Previous: Lesson 35 - SQLite Part 2
/ placeholder_l35
Next: Lesson 37 - CLI Applications
Coming soon!
---
Python Tutorial for Beginners playlist - Learn Python from scratch with hands-on coding demos.
#Python #SQLAlchemy #ORM #PythonTutorial #LearnPython #PythonForBeginners #CodingTutorial #Database #Models #Relationships
Sur cette page du site, vous pouvez voir la vidéo en ligne SQLAlchemy ORM (Models, Relationships, Aggregates) - Python Tutorial for Beginners #36 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Codegiz — Built by Claude AI 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 18 fois et il a aimé 0 téléspectateurs. Bon visionnage!