X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add docs
  • Loading branch information
erlend-aasland committed Mar 28, 2023
commit 094d8e2d6a17a27232690df8906f5a2a3c8105ee
19 changes: 17 additions & 2 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1041,19 +1041,34 @@ Connection objects
(2, 'broccoli pie', 'broccoli cheese onions flour')
(3, 'pumpkin pie', 'pumpkin sugar flour butter')

.. method:: load_extension(path, /)
.. method:: load_extension(path, /, *, entrypoint=None)

Load an SQLite extension from a shared library located at *path*.
Load an SQLite extension from a shared library.
Enable extension loading with :meth:`enable_load_extension` before
calling this method.

:param str path:

The path to the SQLite extension.

:param entrypoint:

Optional entry point name.
If ``None`` (default),
SQLite will try to come up with an entry point name of its own.

:type entrypoint: str | None

.. audit-event:: sqlite3.load_extension connection,path sqlite3.Connection.load_extension

.. versionadded:: 3.2

.. versionchanged:: 3.10
Added the ``sqlite3.load_extension`` auditing event.

.. versionchanged:: 3.12
The *entrypoint* parameter.

.. method:: iterdump

Return an :term:`iterator` to dump the database as SQL source code.
Expand Down
5 changes: 5 additions & 0 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ sqlite3
:ref:`transaction handling <sqlite3-transaction-control-autocommit>`.
(Contributed by Erlend E. Aasland in :gh:`83638`.)

* Add *entrypoint* keyword-only parameter to
:meth:`~sqlite3.Connection.load_extension`,
for overriding the SQLite extension entry point.
(Contributed by Erlend E. Aasland in :gh:`103015`.)

threading
---------

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Add *entrypoint* keyword-only parameter to
:meth:`sqlite3.Connection.load_extension`, for overriding the SQLite
extension entry point. Patch by Erlend E. Aasland.
X Tutup