diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-04-26 23:16:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 23:16:46 (GMT) |
commit | 7244c0060dc3ef909f34b0791c3e7490b0340d5e (patch) | |
tree | 33af92f2923bc24556a6b2c8897442d2a8764a78 /Doc/library | |
parent | 52cd6d5e1b2bece0d8efb58b1af41071c914ebe6 (diff) | |
download | cpython-7244c0060dc3ef909f34b0791c3e7490b0340d5e.zip cpython-7244c0060dc3ef909f34b0791c3e7490b0340d5e.tar.gz cpython-7244c0060dc3ef909f34b0791c3e7490b0340d5e.tar.bz2 |
bpo-43762: Add audit events for loading of sqlite3 extensions (GH-25246)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/sqlite3.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 6bdf4ed..d0f28db 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -225,6 +225,7 @@ Module functions and constants be found in the `SQLite URI documentation <https://www.sqlite.org/uri.html>`_. .. audit-event:: sqlite3.connect database sqlite3.connect + .. audit-event:: sqlite3.connect/handle connection_handle sqlite3.connect .. versionchanged:: 3.4 Added the *uri* parameter. @@ -232,6 +233,9 @@ Module functions and constants .. versionchanged:: 3.7 *database* can now also be a :term:`path-like object`, not only a string. + .. versionchanged:: 3.10 + Added the ``sqlite3.connect/handle`` auditing event. + .. function:: register_converter(typename, callable) @@ -467,8 +471,13 @@ Connection Objects Loadable extensions are disabled by default. See [#f1]_. + .. audit-event:: sqlite3.enable_load_extension connection,enabled sqlite3.enable_load_extension + .. versionadded:: 3.2 + .. versionchanged:: 3.10 + Added the ``sqlite3.enable_load_extension`` auditing event. + .. literalinclude:: ../includes/sqlite3/load_extension.py .. method:: load_extension(path) @@ -479,8 +488,13 @@ Connection Objects Loadable extensions are disabled by default. See [#f1]_. + .. audit-event:: sqlite3.load_extension connection,path sqlite3.load_extension + .. versionadded:: 3.2 + .. versionchanged:: 3.10 + Added the ``sqlite3.load_extension`` auditing event. + .. attribute:: row_factory You can change this attribute to a callable that accepts the cursor and the |