python

Get all records Sqlalchemy

Using the .all() method in Sqlalchemy you can get all records from a table

#get all records of first_name column
self.session.query(User.first_name).all()
Was this helpful?