Search code snippets, questions, articles...

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()

Search Index Data (The code snippet can also be found with below search text)

Select all records Sqlalchemy
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet