SQLAlchemy ORM for Beginners

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025

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

  • @jadia
    @jadia 5 лет назад +6

    The session is well structured, clear and filled with subtle humor. Great content.

  • @dannyibovnik
    @dannyibovnik 5 лет назад +26

    0:42 Core Schema centric, ORM - User Model
    1:00 Installing
    1:20 Connecting and establishing a session
    1:40 Connecting
    2:32 Establishing a session
    3:54 Defining models
    4:15 Model base - declarative base
    5:21 Cookie model
    7:36 Persisting our table
    8:27 Inserting data
    9:16 Adding to session
    13:54 Accessing attributes
    14:15 Bulk inserts
    15:30 Bulk insert differences
    17:20 Queries
    19:30 Particular attributes
    20:28 Order by
    20:51 Descending
    21:25 Limiting
    23:34 Database functions (scalar)
    25:23 Count
    26:54 Labeling
    28:28 Filter by
    29:21 Filter
    30:50 Clause elements
    31:30 Clause element methods
    31:55 Operators
    33:45 Conjunctions
    35:24 Updating
    36:40 Deleting
    38:40 Relationships
    38:50 Imports
    39:07 User Model
    39:18 Order Model
    40:46 Lineitem Model
    41:30 Persist them
    42:57 Defining a User
    43:03 Setting up an order
    43:32 Preparing Line items
    44:10 Associate order and line items
    45:05 Using relationships in queries
    46:35 Another example
    47:23 Automap, Geospatial Queries

    • @default_youtube_profile
      @default_youtube_profile 5 лет назад

      I was searching for pooling with sqlalchemy and landed here.
      so much but not talk about pooling ?

    • @poulameepal8065
      @poulameepal8065 4 года назад

      Thanks for the time-stamp!

    • @ShwetabhKumar
      @ShwetabhKumar 4 года назад +1

      This should be pinned as the top comment. Thanks for putting this together. Great video content also.

  • @charliepilgrim1065
    @charliepilgrim1065 9 лет назад +40

    Nice overview of SQLAlchemy. I almost turned this off after you said you'd be mainly talking about cookies in the intro because I thought you meant web cookies.

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

    First time I see tree tables (User, Order, LineItem) joined with Foreign Keys, useful demo!

  • @CrispyDose
    @CrispyDose 9 лет назад +1

    Great video!
    Love the coffee mug.

  • @RRits57
    @RRits57 7 лет назад +1

    Thanks awesome overview, helped me a lot.

  • @soroushfallah7110
    @soroushfallah7110 4 года назад

    Great Introduction. Thanks!

  • @pw7225
    @pw7225 8 лет назад +2

    Didactically brilliant. Thanks!

  • @cool1010com
    @cool1010com 3 года назад

    The way he said "Oh" at the end, makes me feel Im missing out important info lel
    But great presentation, thank you very much

  • @AndreasZinonos
    @AndreasZinonos 7 лет назад +5

    47:13
    Connect to already existing database :)

  • @prettyprinted
    @prettyprinted 9 лет назад +3

    Nice video. Thanks!

  • @stanisgmi
    @stanisgmi 8 лет назад

    Great introduction

  • @adewaleadisa4346
    @adewaleadisa4346 8 лет назад

    very nice talk. thanks.

  • @neofit3157
    @neofit3157 9 лет назад

    very good, very need, thks

  • @s.bhargavakrishna8749
    @s.bhargavakrishna8749 7 лет назад

    nice presentation

  • @yourdadsbestfriend7101
    @yourdadsbestfriend7101 3 года назад

    amazing

  • @christopherwee2149
    @christopherwee2149 5 лет назад

    Thank you very much cookieman 🍪

  • @connelchen
    @connelchen 6 лет назад +1

    when i try to enter values into the table cookies
    the table gives me the error no such table

  • @somaloco3701
    @somaloco3701 5 лет назад

    I have followed this video and get the error below. Can anyone else confirm the code from the video works? Doesn't seem to...
    cc = session.query(Cookie).filter(Cookie.cookie_name == "chocolate chip").one()
    line1 = LineItem(cookie=cc, quantity=2, extended_cost=1.00)
    o1.line_items.append(line1)
    I get:
    "TypeError: 'cookie' is an invalid keyword argument for LineItem"

  • @felicciasc
    @felicciasc 5 лет назад

    This guy looks like someone I used to work with in 1996

  • @elektronik2000
    @elektronik2000 9 лет назад

    you mentions that is possible to dump pandas dataframe to sqlalchemy by using some odo ?? (i don't get) can you explain how to do it ?

    • @paulvbarbar9957
      @paulvbarbar9957 9 лет назад

      +Volodymyr Nepyuk odo.pydata.org/en/latest/ may be .

  • @danielschmider5069
    @danielschmider5069 4 года назад

    Glad he mentioned automap, but I he should have just used it in the demo. creating classes is SO boring and basic, its not worth dedicating time to, especially in a presentation.

  • @NMelis
    @NMelis 7 лет назад

    блин, почему я не знаю английский?!

  • @paulvbarbar9957
    @paulvbarbar9957 9 лет назад +1

    feels just like mongoose..,

  • @tseringlobsang1789
    @tseringlobsang1789 7 лет назад

    Seriously, SQLAlchemy is a piece of shit. It just complicates the entire development process. Object orientating a relational data is a recipe of disaster.

    • @Colstonewall
      @Colstonewall 7 лет назад +2

      Ridiculous. It works great and people love it. Not to mention, although Django doesn't use SQLAlchemy, they use OOP in their database setup, and it's beautiful.