Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
Added docs and release notes.
  • Loading branch information
felixxm committed Jan 24, 2024
commit f3bab4720e79103daa922cc214a4a58a4c48315f
11 changes: 10 additions & 1 deletion Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1137,12 +1137,19 @@ Connection objects

.. _Loading an Extension: https://www.sqlite.org/loadext.html#loading_an_extension_

.. method:: iterdump
.. method:: iterdump(*, filter=None)

Return an :term:`iterator` to dump the database as SQL source code.
Useful when saving an in-memory database for later restoration.
Similar to the ``.dump`` command in the :program:`sqlite3` shell.

:param entrypoint:

An optional ``LIKE`` pattern for database objects to dump, e.g. ``prefix_%``.
If ``None`` (the default), all database objects will be included.

:type entrypoint: str | None

Comment thread
felixxm marked this conversation as resolved.
Outdated
Example:

.. testcode::
Expand All @@ -1158,6 +1165,8 @@ Connection objects

:ref:`sqlite3-howto-encoding`

.. versionchanged:: 3.13
Added the *filter* parameter.

.. method:: backup(target, *, pages=-1, progress=None, name="main", sleep=0.250)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Added ``filter`` keyword-only parameter to
Comment thread
felixxm marked this conversation as resolved.
Outdated
:meth:`sqlite3.Connection.iterdump` for filtering database objects to dump.
Patch by Mariusz Felisiak.