How to Write SQLAlchemy 2.0-Style Queries in Flask-SQLAlchemy

preview_player
Показать описание
In this video I will go over the new style of queries that SQLAlchemy supports and recommends. I give examples in the context of a Flask-SQLAlchemy app.

Рекомендации по теме
Комментарии
Автор

I too would love to see a video on how the new model definitions are done. Also, I'm enjoying and appreciating your videos. Thanks

lgdd
Автор

Seems like a huge step back on the whole "user friendliness" front, but I'm sure they had their reasons... We won't shoot the messenger, though. 😅Thanks a lot, great stuff, as always...

amarmusovic
Автор

Video on the new model definitions would be great. Particularly how different types of relationships are now defined.

damian-duffy
Автор

Perfect timing! Please keep ‘em coming!

Itsyaboi
Автор

Great video! I still think the legacy query system is easier to use. I'll keep working on the learning the new style, and might eventually switch just because that seems to be their preferred way, but that'll probably be down the road.

Also thanks for mentioning there is a new modeling system too, because I'm pretty unaware of it! So that'll be another thing on my to-do list lol

samiam.
Автор

The new way of doing things is closer to raw sql, its not that bad

amine
Автор

I prefer the old style, but I have been teaching my students both so they are aware of both styles. They can then choose the one they prefer to use.

ylynfatt
Автор

11 months have passed and still no sign of a video for the new style of model creation!

alikorloo
Автор

Are there any advantages with the new syntax? For me it looks more complicated. and the approach of sqlalchemy was to make it simpler.

teprox
Автор

How do you check if temp tables exist?

Has_tables just does not work anymore

chriskeo
Автор

hi Anthony

do you have any GraphQL content in the pipe?

vaneakatok
Автор

Sorry for the naive question, but what's the advantage of this "new" API. From an "outsider" view, it just seems more complicated; is it providing any benefit given its weird and more complex syntax?

farzadmf
Автор

This feels weird to me. Almost unnecessarily verbose. I feel like it was fine the way it was? Am I missing something, is it more performant? Or perhaps more modular/extendable in some way?

What an odd move by the maintainers.

MasonGelosotech
Автор

Why type so much! The old style is a bit more intuitive without needing to study what the code is doing.

eboyd
Автор

😵‍💫😵‍💫😵‍💫 Talk about not being beginner friendly

sibow