Better __repr__ for tables

This commit is contained in:
Simon Willison 2019-07-22 17:05:51 -07:00
commit 58db40d67c
3 changed files with 9 additions and 4 deletions

View file

@ -571,7 +571,7 @@ Introspection
If you have loaded an existing table, you can use introspection to find out more about it::
>>> db["PlantType"]
<sqlite_utils.db.Table at 0x10f5960b8>
<Table PlantType (id, value)>
The ``.count`` property shows the current number of rows (``select count(*) from table``)::