mirror of
https://github.com/python/cpython.git
synced 2025-09-14 20:56:06 +00:00
gh-95273: Relocate sqlite3 enable load extension note (#95430)
This commit is contained in:
parent
e3bae80e70
commit
d92b19e1b5
1 changed files with 8 additions and 12 deletions
|
@ -753,7 +753,14 @@ Connection Objects
|
||||||
aggregates or whole new virtual table implementations. One well-known
|
aggregates or whole new virtual table implementations. One well-known
|
||||||
extension is the fulltext-search extension distributed with SQLite.
|
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
|
.. audit-event:: sqlite3.enable_load_extension connection,enabled sqlite3.Connection.enable_load_extension
|
||||||
|
|
||||||
|
@ -770,8 +777,6 @@ Connection Objects
|
||||||
Enable extension loading with :meth:`enable_load_extension` before
|
Enable extension loading with :meth:`enable_load_extension` before
|
||||||
calling this method.
|
calling this method.
|
||||||
|
|
||||||
Loadable extensions are disabled by default. See [#f1]_.
|
|
||||||
|
|
||||||
.. audit-event:: sqlite3.load_extension connection,path sqlite3.Connection.load_extension
|
.. audit-event:: sqlite3.load_extension connection,path sqlite3.Connection.load_extension
|
||||||
|
|
||||||
.. versionadded:: 3.2
|
.. versionadded:: 3.2
|
||||||
|
@ -1716,12 +1721,3 @@ the context manager is a no-op.
|
||||||
nor closes the connection.
|
nor closes the connection.
|
||||||
|
|
||||||
.. literalinclude:: ../includes/sqlite3/ctx_manager.py
|
.. 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.
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue