mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-31 22:44:11 +02:00
'sqlite-utils insert tablename file.json' command
This commit is contained in:
parent
1c683076d3
commit
9e74289397
4 changed files with 104 additions and 0 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue