diff options
author | Marcin Niemira <marcin@niemira.net> | 2018-07-08 12:02:58 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2018-07-08 12:02:58 (GMT) |
commit | bc9aa813a34474e517af8999565ff6151559d42f (patch) | |
tree | b661947315da01fc3a4cb3d5cfa0e55f0bb873fd /Doc/library/sqlite3.rst | |
parent | 25b804a9c21c735ce322877f105ebab2539ccfc1 (diff) | |
download | cpython-bc9aa813a34474e517af8999565ff6151559d42f.zip cpython-bc9aa813a34474e517af8999565ff6151559d42f.tar.gz cpython-bc9aa813a34474e517af8999565ff6151559d42f.tar.bz2 |
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)
Diffstat (limited to 'Doc/library/sqlite3.rst')
-rw-r--r-- | Doc/library/sqlite3.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index d30e4d4..37d2a4f 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -346,7 +346,7 @@ Connection Objects called as the SQL function. If *deterministic* is true, the created function is marked as `deterministic <https://sqlite.org/deterministic.html>`_, which allows SQLite to perform additional optimizations. This flag is supported by - SQLite 3.8.3 or higher, ``sqlite3.NotSupportedError`` will be raised if used + SQLite 3.8.3 or higher, :exc:`NotSupportedError` will be raised if used with older versions. The function can return any of the types supported by SQLite: bytes, str, int, @@ -835,6 +835,13 @@ Exceptions disconnect occurs, the data source name is not found, a transaction could not be processed, etc. It is a subclass of :exc:`DatabaseError`. +.. exception:: NotSupportedError + + Exception raised in case a method or database API was used which is not + supported by the database, e.g. calling the :meth:`~Connection.rollback` + method on a connection that does not support transaction or has + transactions turned off. It is a subclass of :exc:`DatabaseError`. + .. _sqlite3-types: |