"SQLAlchemy 2.0 - The One-Point-Four-Ening 2021" by: Mike Bayer

Поделиться
HTML-код
  • Опубликовано: 17 июн 2021
  • "SQLAlchemy 2.0 - The One-Point-Four-Ening 2021" by: Mike Bayer
    SQLAlchemy enters the "Python 3 only" world with an all-new rethink of it's Core and ORM APIs known as SQLAlchemy 2.0. Right now, SQLAlchemy 2.0 is in its transitional "caterpillar to butterfly" state, which is the new SQLAlchemy 1.4 series, currently in beta releases.
    This tutorial will be the premiere of the classic "from the ground up" tutorial of SQLAlchemy re-imagined for the new 2.0 way of working, featuring a much greater consistency between the "Core" and "ORM" experiences. There will be nary an "engine.execute()" nor a "session.query()" to be found. New ORM configurational patterns are presented a well.
    Presented in terms of a four-layered model, which include "Engine and Connection Basics", "Table Metadata", "SQL Expression Language", and "ORM Usage", the tutorial is broken into two sections and API use is presented in terms of a console runner application which participants can install locally and follow along.
    Recorded at the 2021 Python Web Conference (2021.pythonwebconf.com)
  • НаукаНаука

Комментарии • 30

  • @gavenblsn4753
    @gavenblsn4753 3 года назад +62

    timeline
    0:0 sqlalchemy basics and new version changes
    13:50 sqlalchemy "Onion"
    14:24 Engine/connection/transactions
    37:08 Table Metadata/reflection/ddl
    49:00 Core sql expression language
    1:35:56 Object Relational Mapping (orm)
    2:17:36 Advanced orm
    2:36:17 eager loading
    sqlalchemy async is not covered

  • @pck7533
    @pck7533 2 года назад +14

    Regardless of the topic, this has been one of the best python videos I've ever watched. He's also a great narrator.

  • @Defalt91
    @Defalt91 2 года назад +9

    One of the best courses i've ever saw, before this video i always had a feeling that my database isnt safe and sound but now i know that I'm in the very good hands when i'm using sqlalchemy library, i wish the other courses out there had this much deep learning into them but to many of those videos aren't helpfull at all, many of them spreading wrong information and wrong ways to code , thanks a lot

  • @underling-macha-greentea
    @underling-macha-greentea 2 года назад +10

    This is a great talk and very helpful for someone just learning to use SQLAlchemy + starting with best practices

  • @thomascoward3396
    @thomascoward3396 2 года назад +5

    Great tutorial. The part about contains_eager was actually very useful to know, I was wondering myself how this would work right up until you explained it, I thought maybe .join would magically handle it somehow but I guessed wrong.

  • @Jibbius
    @Jibbius Год назад +1

    This explained so much to me. Thank you!

  • @Ngserdna
    @Ngserdna Год назад

    Awesome talk 👍Thanks Mike!

  • @EagerEggplant
    @EagerEggplant 2 года назад +6

    9:11 not very happy 😂

  • @maxortman9118
    @maxortman9118 2 года назад

    he did such a great job explaining.

  • @NicksonKaigi
    @NicksonKaigi Год назад

    Excellent !!

  • @mj2068
    @mj2068 7 месяцев назад

    you know you can trust a guy when his slides are in terminal. and thanks, mike.

  • @NavdeepGaur
    @NavdeepGaur 2 года назад +5

    Cole Rutlege, what was happening?

  • @theRishuPandey
    @theRishuPandey 3 года назад +1

    hey thanks

  • @mogwai413
    @mogwai413 2 года назад +1

    Hi - when using inpect(engine), how do I pivot to a non-default schema - "dbo"?

  • @yomajo
    @yomajo 11 месяцев назад

    2:04:20 ~ Does flask sqlalchemy handles "expire on commit" reasonably? (user.email in template does not emit extra query)?

  • @bckahraman
    @bckahraman Год назад

    1:12:33 - here Mike inserts `user_id` into the `user_table` but it does not exist. Apparently extra dictionary keys are not being taken into account, otherwise it would have complained with no such column exists. `id`s are being automatically inserted there. You can also see that from the generated sql statement.

  • @420_gunna
    @420_gunna Год назад +2

    1:05:28

  • @udaym4204
    @udaym4204 9 месяцев назад

    i feel good if he done real word small project things get more clear instead explain only . i try to learn but not able to find right solution if any buudy help.

  • @bersi3306
    @bersi3306 Год назад

    How is he able to show logs of SQL operations in REPL?

    • @nothinspecific
      @nothinspecific 11 месяцев назад

      you can add `echo=True` inside create_engine() for getting logs

  • @marbas9215
    @marbas9215 2 года назад

    Is the code from the presentation posted anywhere?

  • @jarjarklinks
    @jarjarklinks 8 месяцев назад

    Why is the documentation so poor?

  • @larsoleruben
    @larsoleruben Год назад

    Why don't you make som useful examples in the documentation, that takes databases with several schemas into consideration?

  • @ZhengCheng
    @ZhengCheng 2 года назад

    these meaningless black box 49:59 on the screen is annoying