Reputation: 6895
In Rails I'm used to calling Model.find(id)
to fetch a record from a database.
Now in SQLAlchemy I'm using db_session.query(Model).filter(Model.id == id)
. Does SQLAlchemy have something similar as Rails' find method?
Upvotes: 0
Views: 60