SQLAlchemy | One To Many Relationships

Описание к видео SQLAlchemy | One To Many Relationships

SQLAlchemy | One To Many Relationships.
In this video, I walk through how to create one to many relationships between two models using SQLAlchemy. One-to-many relationships are one of the most common database relationships. If you want to learn how to use one-to-many relationships using SQLAlchemy, then this video is a great starting point.

I walk through how to create database tables and the different ways to create a relationship between two models.

I also explain how to configure delete behaviour using cascade.

SOURCE CODE:
https://github.com/jod35/sqlalchemy_o...

SUBSCRIBE:
https://www.youtube.com/SsaliJonathan...

Please donate to my channel:
https://www.buymeacoffee.com/jod35

GITHUB:
https://github.com/jod35

TWITTER:
  / jod35_  

Timestamps
00:00 Introduction
01:17 Configuring the database
01:17 Creating the data models
04:36 Creating the database tables
12:12 Foreign keys
13:19 Creating a relationship with a backref
14:50 Creating the database tables
16:16 Populating the database
24:06 Querying related objects using backref
27:09 Querying related objects using back_populates
28:37 backref vs back_populates
28:44 Configuring delete behaviour
35:55 Wrapping Up

Комментарии

Информация по комментариям в разработке