I need to know whether any given sqlalchemy table (sqlalchemy.schema.Table) has exactly 0 rows. I have a lot of tables with a lot of rows in each and this has to run for al
You can use-
db.query(Table_Name).first()
where db is sessionmaker() object. Thanks @David S
db
sessionmaker()