Source
- Hybrid property/method : when invoked through an instance returns some value but for class based invocation returns sql.
- Alembic - for migrations
- Reflection - for loading table structure from DB
- SqlAlchemy Core - has sum/count/order by/group by etc sql equivalents.
- Session states for an object - Transient/Pending/Persistent/Detached
- session.expunge() for removing an object from session
- SqlAlchemy ORM is different from core
- (Core) ResultProxy - you can iterate through the resultset using indices or key/value both
- Association proxy : For e.g. many-to-many relationship in Cookie-Ingredient and you just want to create ingredients for a cookie or just want to fetch ingredients' names. With AP you can do it easily without looping through stuff.
- sqlacodegen - something about reflection
No comments:
Post a Comment