This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample Tortoise ORM queries using FKs, M2Ms, and manually traversing M2Ms (because fuck the system that's why) | |
# ic() is from the icecream package https://github.com/gruns/icecream | |
# FK Relationships | |
query = Equity.get(ticker='COL') | |
""" | |
PATTERN 1 (Recommended): ForeignKeyField | |
USES: | |
- You only want to get the data and not edit in any way |