mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Better __repr__ for tables
This commit is contained in:
parent
127a836054
commit
58db40d67c
3 changed files with 9 additions and 4 deletions
|
|
@ -380,7 +380,10 @@ class Table:
|
|||
|
||||
def __repr__(self):
|
||||
return "<Table {}{}>".format(
|
||||
self.name, " (does not exist yet)" if not self.exists else ""
|
||||
self.name,
|
||||
" (does not exist yet)"
|
||||
if not self.exists
|
||||
else " ({})".format(", ".join(c.name for c in self.columns)),
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue