Skip to content

Commit d92b19e

Browse files
gh-95273: Relocate sqlite3 enable load extension note (#95430)
1 parent e3bae80 commit d92b19e

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
@@ -753,7 +753,14 @@ Connection Objects
753753
aggregates or whole new virtual table implementations. One well-known
754754
extension is the fulltext-search extension distributed with SQLite.
755755

756-
Loadable extensions are disabled by default. See [#f1]_.
756+
.. note::
757+
758+
The ``sqlite3`` module is not built with loadable extension support by
759+
default, because some platforms (notably macOS) have SQLite
760+
libraries which are compiled without this feature.
761+
To get loadable extension support,
762+
you must pass the :option:`--enable-loadable-sqlite-extensions` option
763+
to :program:`configure`.
757764

758765
.. audit-event:: sqlite3.enable_load_extension connection,enabled sqlite3.Connection.enable_load_extension
759766

@@ -770,8 +777,6 @@ Connection Objects
770777
Enable extension loading with :meth:`enable_load_extension` before
771778
calling this method.
772779

773-
Loadable extensions are disabled by default. See [#f1]_.
774-
775780
.. audit-event:: sqlite3.load_extension connection,path sqlite3.Connection.load_extension
776781

777782
.. versionadded:: 3.2
@@ -1716,12 +1721,3 @@ the context manager is a no-op.
17161721
nor closes the connection.
17171722

17181723
.. literalinclude:: ../includes/sqlite3/ctx_manager.py
1719-
1720-
1721-
.. rubric:: Footnotes
1722-
1723-
.. [#f1] The sqlite3 module is not built with loadable extension support by
1724-
default, because some platforms (notably macOS) have SQLite
1725-
libraries which are compiled without this feature. To get loadable
1726-
extension support, you must pass the
1727-
:option:`--enable-loadable-sqlite-extensions` option to configure.

0 commit comments

Comments
 (0)