Yields the number of rows in the table.
(self)
| 882 | return self.primary_key |
| 883 | |
| 884 | def count(self): |
| 885 | """ Yields the number of rows in the table. |
| 886 | """ |
| 887 | return int(list(self.db.execute("select count(*) from `%s`;" % self.name))[0][0]) |
| 888 | |
| 889 | def __len__(self): |
| 890 | return self.count() |