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

Skip to content

Commit 557a063

Browse files
committed
sqlite3 documentation: Connection.iterdump() is a method
1 parent 5503d47 commit 557a063

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/sqlite3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ Connection Objects
495495
deleted since the database connection was opened.
496496

497497

498-
.. attribute:: iterdump
498+
.. method:: iterdump
499499

500500
Returns an iterator to dump the database in an SQL text format. Useful when
501501
saving an in-memory database for later restoration. This function provides
@@ -505,7 +505,7 @@ Connection Objects
505505
Example::
506506

507507
# Convert file existing_db.db to SQL dump file dump.sql
508-
import sqlite3, os
508+
import sqlite3
509509

510510
con = sqlite3.connect('existing_db.db')
511511
with open('dump.sql', 'w') as f:

0 commit comments

Comments
 (0)