Skip to content

Commit

Permalink
Documentation for table.pks, closes #116
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jun 23, 2020
1 parent 4d9a320 commit fbeb61e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/python-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,11 @@ The ``.columns_dict`` property returns a dictionary version of this with just th
>>> db["PlantType"].columns_dict
{'id': <class 'int'>, 'value': <class 'str'>}
The ``.pks`` property returns a list of strings naming the primary key columns for the table::
>>> db["PlantType"].pks
['id']
The ``.foreign_keys`` property shows if the table has any foreign key relationships. It is not available on views.
::
Expand Down

0 comments on commit fbeb61e

Please sign in to comment.