SQLAlchemy ORM - A NEW WAY TO CREATE COLUMNS 🆕🆕🆕

preview_player
Показать описание
Hello everyone and welcome back to another python video!
In this video I will go over using the new style of mapping columns in sqlalchemy

Check out my channel for more 😎:

Code for this video:

Check out the repo:

Timestamps
00:00 - Intro
00:19 - Setup
04:52 - Default Types
05:12 - Custom Annotations
05:54 - Annotated generic type
08:01 - A cleaner way
09:00 - Further Beyond ...
09:23 - Relationships
10:52 - Outro

#python #pythonforbeginners #pythontutorial #pythonprogramming #python3 #pythonbegginer #pythonbeginners #automation
Рекомендации по теме
Комментарии
Автор

This is what we need - people who can explain SQLAlchemy in a way that the rest of us can understand!

apmcd
Автор

I found the progressive way of presenting the changes made to the code excellent, obtaining the same final result. Congratulations.

Another detail: it would have been easier to create the database in memory, to avoid having to continually delete the "database.db" file.

adaum
Автор

Thanks! Could you make a video using FlaskSQLAlchemy also? Thx in advance.

SA-ojbo
Автор

Can you tell me why the older method of creating columns in flask is not working in Flask_Sqlalchemy 3.1

saymanlal
Автор

I have a question... This is obviously a different approach, but from replacing the Column function with the Mapped function, you needed to define a lot more things and do more imports... does this method optimize the script in therms of scalability and performance ? What i'm trying to say is, you can get complicated with this method, i believe...

spikyd
Автор

How do we generate slugs? Either on update or create etc. All the code online seems outdated

Septumsempra