mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
db.supports_strict and table.strict properties, refs #344
This commit is contained in:
parent
126703706e
commit
e3f108e0f3
3 changed files with 65 additions and 14 deletions
|
|
@ -1609,8 +1609,8 @@ A more useful example: if you are working with `SpatiaLite <https://www.gaia-gis
|
|||
|
||||
.. _python_api_introspection:
|
||||
|
||||
Introspection
|
||||
=============
|
||||
Introspecting tables and views
|
||||
==============================
|
||||
|
||||
If you have loaded an existing table or view, you can use introspection to find out more about it::
|
||||
|
||||
|
|
@ -1741,6 +1741,18 @@ The ``.schema`` property outputs the table's schema as a SQL string::
|
|||
FOREIGN KEY ("qCareAssistant") REFERENCES [qCareAssistant](id),
|
||||
FOREIGN KEY ("qLegalStatus") REFERENCES [qLegalStatus](id))
|
||||
|
||||
.. _python_api_introspection_strict:
|
||||
|
||||
.strict
|
||||
-------
|
||||
|
||||
The ``.strict`` property identifies if the table is a `SQLite STRICT table <https://www.sqlite.org/stricttables.html>`__.
|
||||
|
||||
::
|
||||
|
||||
>>> db["ny_times_us_counties"].strict
|
||||
False
|
||||
|
||||
.. _python_api_introspection_indexes:
|
||||
|
||||
.indexes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue