8000 gh-95273: Move sqlite3 executemany examples from reference to tutorial by erlend-aasland · Pull Request #95351 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-95273: Move sqlite3 executemany examples from reference to tutorial #95351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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 small example
  • Loading branch information
erlend-aasland committed Jul 28, 2022
commit 36662994d842a79d293509265b89c9d5bb23121f
7 changes: 7 additions & 0 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,13 @@ Cursor Objects
:term:`iterator` yielding parameters instead of a sequence.
Uses the same implicit transaction handling as :meth:`~Cursor.execute`.

Example::

data = [
("row1",),
("row2",),
]
cur.executemany("insert into t values(?)", data)

.. method:: executescript(sql_script, /)

Expand Down
0