SQLAlchemy 3: Loading our Data
>>> session.query(Shelter).one().animals
[Animal(name='fido', age=2, fav_food='homework'),
Animal(name='luna', age=4, fav_food='yarn')]
All of our data persists! And we didn't have to write a syncing mechanism, or a save/load system, or a filtering system. SQLAlchemy takes care of all of this for us, which saves us a ton of time when our models get more complicated, connected, involved, and numerous.