Created
July 17, 2018 07:34
-
-
Save deeuu/a50db0423c34cb95fec67b76234cb747 to your computer and use it in GitHub Desktop.
SQLAlchemy: number of rows
This file contains 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
# https://stackoverflow.com/questions/10822635/get-the-number-of-rows-in-table-using-sqlalchemy | |
num_rows = session.query(MyTable).count() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment