Skip to content

Commit 1187efe

Browse files
gh-95273: Relocate sqlite3 enable load extension note (GH-95430)
(cherry picked from commit d92b19e) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent 30ca691 commit 1187efe

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

Doc/library/sqlite3.rst

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,14 @@ Connection Objects
743743
aggregates or whole new virtual table implementations. One well-known
744744
extension is the fulltext-search extension distributed with SQLite.
745745

746-
Loadable extensions are disabled by default. See [#f1]_.
746+
.. note::
747+
748+
The ``sqlite3`` module is not built with loadable extension support by
749+
default, because some platforms (notably macOS) have SQLite
750+
libraries which are compiled without this feature.
751+
To get loadable extension support,
752+
you must pass the :option:`--enable-loadable-sqlite-extensions` option
753+
to :program:`configure`.
747754

748755
.. audit-event:: sqlite3.enable_load_extension connection,enabled sqlite3.Connection.enable_load_extension
749756

@@ -760,8 +767,6 @@ Connection Objects
760767
Enable extension loading with :meth:`enable_load_extension` before
761768
calling this method.
762769

763-
Loadable extensions are disabled by default. See [#f1]_.
764-
765770
.. audit-event:: sqlite3.load_extension connection,path sqlite3.Connection.load_extension
766771

767772
.. versionadded:: 3.2
@@ -1699,12 +1704,3 @@ the context manager is a no-op.
16991704
nor closes the connection.
17001705

17011706
.. literalinclude:: ../includes/sqlite3/ctx_manager.py
1702-
1703-
1704-
.. rubric:: Footnotes
1705-
1706-
.. [#f1] The sqlite3 module is not built with loadable extension support by
1707-
default, because some platforms (notably macOS) have SQLite
1708-
libraries which are compiled without this feature. To get loadable
1709-
extension support, you must pass the
1710-
:option:`--enable-loadable-sqlite-extensions` option to configure.

0 commit comments

Comments
 (0)