'sqlite-utils insert tablename file.json' command

This commit is contained in:
Simon Willison 2019-01-24 21:06:41 -08:00
commit 9e74289397
4 changed files with 104 additions and 0 deletions

View file

@ -128,6 +128,10 @@ class Table:
).fetchall()
return [Column(*row) for row in rows]
@property
def pks(self):
return [column.name for column in self.columns if column.is_pk]
@property
def foreign_keys(self):
fks = []