summaryrefslogtreecommitdiffstats
path: root/Doc/library/sqlite3.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-29 19:36:58 (GMT)
committerGitHub <noreply@github.com>2022-07-29 19:36:58 (GMT)
commitf14ced6062ecdd3c654f3c558f79e1edf4f10cc8 (patch)
tree210f16acc6f6d967449c1d9c5591be6b3408e427 /Doc/library/sqlite3.rst
parent3417ce3489d68f4bc6d85b3fc280523eb90eab62 (diff)
downloadcpython-f14ced6062ecdd3c654f3c558f79e1edf4f10cc8.zip
cpython-f14ced6062ecdd3c654f3c558f79e1edf4f10cc8.tar.gz
cpython-f14ced6062ecdd3c654f3c558f79e1edf4f10cc8.tar.bz2
gh-95273: Relocate sqlite3 enable load extension note (GH-95430)
(cherry picked from commit d92b19e1b500247f9a62b12b9da889b99fe333f6) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Doc/library/sqlite3.rst')
-rw-r--r--Doc/library/sqlite3.rst20
1 files changed, 8 insertions, 12 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 061207b..e68aa40 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -618,7 +618,14 @@ Connection Objects
aggregates or whole new virtual table implementations. One well-known
extension is the fulltext-search extension distributed with SQLite.
- Loadable extensions are disabled by default. See [#f1]_.
+ .. note::
+
+ The ``sqlite3`` module is not built with loadable extension support by
+ default, because some platforms (notably macOS) have SQLite
+ libraries which are compiled without this feature.
+ To get loadable extension support,
+ you must pass the :option:`--enable-loadable-sqlite-extensions` option
+ to :program:`configure`.
.. audit-event:: sqlite3.enable_load_extension connection,enabled sqlite3.Connection.enable_load_extension
@@ -635,8 +642,6 @@ Connection Objects
Enable extension loading with :meth:`enable_load_extension` before
calling this method.
- Loadable extensions are disabled by default. See [#f1]_.
-
.. audit-event:: sqlite3.load_extension connection,path sqlite3.Connection.load_extension
.. versionadded:: 3.2
@@ -1431,12 +1436,3 @@ the context manager is a no-op.
nor closes the connection.
.. literalinclude:: ../includes/sqlite3/ctx_manager.py
-
-
-.. rubric:: Footnotes
-
-.. [#f1] The sqlite3 module is not built with loadable extension support by
- default, because some platforms (notably macOS) have SQLite
- libraries which are compiled without this feature. To get loadable
- extension support, you must pass the
- :option:`--enable-loadable-sqlite-extensions` option to configure.