db.sqlite_version property and fix for deterministic=True on SQLite 3.8.3

Closes #408
This commit is contained in:
Simon Willison 2022-03-01 16:24:27 -08:00
commit d25cdd37a3
4 changed files with 47 additions and 3 deletions

View file

@ -1717,6 +1717,16 @@ A more useful example: if you are working with `SpatiaLite <https://www.gaia-gis
This example uses gographical data from [Who's On First](https://whosonfirst.org/) and depends on the [Shapely](https://shapely.readthedocs.io/en/stable/manual.html) and [HTTPX](https://www.python-httpx.org/) Python libraries.
.. _python_api_sqlite_version:
Checking the SQLite version
===========================
The ``db.sqlite_version`` property returns a tuple of integers representing the version of SQLite used for that database object::
>>> db.sqlite_version
(3, 36, 0)
.. _python_api_introspection:
Introspecting tables and views