Skip to content
Snippets Groups Projects
Unverified Commit 7e7a5708 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

gh-94630: Fixup sqlite3 argument spec docs for connection execute* methods (GH-95319)


(cherry picked from commit 2b373956)

Co-authored-by: default avatarErlend Egeberg Aasland <erlend.aasland@protonmail.com>
parent 657efca2
No related branches found
No related tags found
No related merge requests found
...@@ -413,19 +413,19 @@ Connection Objects ...@@ -413,19 +413,19 @@ Connection Objects
make sure to :meth:`commit` before closing make sure to :meth:`commit` before closing
to avoid losing pending changes. to avoid losing pending changes.
.. method:: execute(sql[, parameters]) .. method:: execute(sql, parameters=(), /)
Create a new :class:`Cursor` object and call Create a new :class:`Cursor` object and call
:meth:`~Cursor.execute` on it with the given *sql* and *parameters*. :meth:`~Cursor.execute` on it with the given *sql* and *parameters*.
Return the new cursor object. Return the new cursor object.
.. method:: executemany(sql[, parameters]) .. method:: executemany(sql, parameters, /)
Create a new :class:`Cursor` object and call Create a new :class:`Cursor` object and call
:meth:`~Cursor.executemany` on it with the given *sql* and *parameters*. :meth:`~Cursor.executemany` on it with the given *sql* and *parameters*.
Return the new cursor object. Return the new cursor object.
.. method:: executescript(sql_script) .. method:: executescript(sql_script, /)
Create a new :class:`Cursor` object and call Create a new :class:`Cursor` object and call
:meth:`~Cursor.executescript` on it with the given *sql_script*. :meth:`~Cursor.executescript` on it with the given *sql_script*.
...@@ -774,11 +774,11 @@ Cursor Objects ...@@ -774,11 +774,11 @@ Cursor Objects
a transaction is implicitly opened before executing *sql*. a transaction is implicitly opened before executing *sql*.
.. method:: executemany(sql, seq_of_parameters, /) .. method:: executemany(sql, parameters, /)
Execute :ref:`parameterized <sqlite3-placeholders>` SQL statement *sql* Execute :ref:`parameterized <sqlite3-placeholders>` SQL statement *sql*
against all parameter sequences or mappings found in the sequence against all parameter sequences or mappings found in the sequence
*seq_of_parameters*. It is also possible to use an *parameters*. It is also possible to use an
:term:`iterator` yielding parameters instead of a sequence. :term:`iterator` yielding parameters instead of a sequence.
Uses the same implicit transaction handling as :meth:`~Cursor.execute`. Uses the same implicit transaction handling as :meth:`~Cursor.execute`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment