Skip to content

Instantly share code, notes, and snippets.

@smitsgit
Last active July 14, 2020 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smitsgit/81cd35f2a5a757ec562e35620eebc559 to your computer and use it in GitHub Desktop.
Save smitsgit/81cd35f2a5a757ec562e35620eebc559 to your computer and use it in GitHub Desktop.
SQL Alchemy Resources
https://www.youtube.com/watch?v=399c-ycBvo4 - Brandon Rhodes
https://www.youtube.com/watch?v=51RpDZKShiw - Jason Mayer
Slides: https://www.slideshare.net/jamdatadude/introduction-to-sqlalchemy-orm
Miguel Grinberg
One to Many Relationship example : https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iv-database
Many to May Relationship example : https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-viii-followers
Four tips : https://blog.miguelgrinberg.com/post/video-four-sqlalchemy-tips
SQl-alchemy docs:
https://docs.sqlalchemy.org/en/13/orm/tutorial.html#version-check
Automap:
From existing databases to sqlalchemy models: https://docs.sqlalchemy.org/en/13/orm/extensions/automap.html
Migration:
Alembic : https://alembic.sqlalchemy.org/en/latest/tutorial.html
Readme: https://github.com/smitsgit/fast-api-sqlachemy
Rename column : https://github.com/rtwnt/url-shortener/blob/master/migrations/versions/bbe95d9977da_.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment