8000 gh-95273: Relocate sqlite3 enable load extension note (GH-95430) · python/cpython@f14ced6 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f14ced6

Browse files
gh-95273: Relocate sqlite3 enable load extension note (GH-95430)
(cherry picked from commit d92b19e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
1 parent 3417ce3 commit f14ced6

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

621-
Loadable extensions are disabled by default. See [#f1]_.
621+
.. note::
622+
623+
The ``sqlite3`` module is not built with loadable extension support by
624+
default, because some platforms (notably macOS) have SQLite
625+
libraries which are compiled without this feature.
626+
To get loadable extension support,
627+
you must pass the :option:`--enable-loadable-sqlite-extensions` option
628+
to :program:`configure`.
622629

623630
.. audit-event:: sqlite3.enable_load_extension connection,enabled sqlite3.Connection.enable_load_extension
624631

@@ -635,8 +642,6 @@ Connection Objects
635642
Enable extension loading with :meth:`enable_load_extension` before
636643
calling this method.
637644

638-
Loadable extensions are disabled by default. See [#f1]_.
639-
640645
.. audit-event:: sqlite3.load_extension connection,path sqlite3.Connection.load_extension
641646

642647
.. versionadded:: 3.2
@@ -1431,12 +1436,3 @@ the context manager is a no-op.
14311436
nor closes the connection.
14321437

14331438
.. literalinclude:: ../includes/sqlite3/ctx_manager.py
1434-
1435-
1436-
.. rubric:: Footnotes
1437-
1438-
.. [#f1] The sqlite3 module is not built with loadable extension support by
1439-
default, because some platforms (notably macOS) have SQLite
1440-
libraries which are compiled without this feature. To get loadable
1441-
extension support, you must pass the
1442-
:option:`--enable-loadable-sqlite-extensions` option to configure.

0 commit comments

Comments
 (0)
0