Skip to content

Commit f3bab47

Browse files
committed
Added docs and release notes.
1 parent f09fa46 commit f3bab47

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Doc/library/sqlite3.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,12 +1137,19 @@ Connection objects
11371137

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

1140-
.. method:: iterdump
1140+
.. method:: iterdump(*, filter=None)
11411141

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

1146+
:param entrypoint:
1147+
1148+
An optional ``LIKE`` pattern for database objects to dump, e.g. ``prefix_%``.
1149+
If ``None`` (the default), all database objects will be included.
1150+
1151+
:type entrypoint: str | None
1152+
11461153
Example:
11471154

11481155
.. testcode::
@@ -1158,6 +1165,8 @@ Connection objects
11581165

11591166
:ref:`sqlite3-howto-encoding`
11601167

1168+
.. versionchanged:: 3.13
1169+
Added the *filter* parameter.
11611170

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Added ``filter`` keyword-only parameter to
2+
:meth:`sqlite3.Connection.iterdump` for filtering database objects to dump.
3+
Patch by Mariusz Felisiak.

0 commit comments

Comments
 (0)