mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
parent
c5f8a2eb1a
commit
36ffcafb1a
3 changed files with 57 additions and 0 deletions
|
|
@ -1802,6 +1802,16 @@ The ``.columns_dict`` property returns a dictionary version of the columns with
|
|||
>>> db["PlantType"].columns_dict
|
||||
{'id': <class 'int'>, 'value': <class 'str'>}
|
||||
|
||||
.. _python_api_introspection_default_values:
|
||||
|
||||
.default_values
|
||||
---------------
|
||||
|
||||
The ``.default_values`` property returns a dictionary of default values for each column that has a default::
|
||||
|
||||
>>> db["table_with_defaults"].default_values
|
||||
{'score': 5}
|
||||
|
||||
.. _python_api_introspection_pks:
|
||||
|
||||
.pks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue