sqlite3 documentation: Connection.iterdump() is a method

This commit is contained in:
Berker Peksag 2016-03-27 18:46:18 +03:00
parent 5503d4731e
commit 557a06309c
1 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ Connection Objects
deleted since the database connection was opened.
.. attribute:: iterdump
.. method:: iterdump
Returns an iterator to dump the database in an SQL text format. Useful when
saving an in-memory database for later restoration. This function provides
@ -505,7 +505,7 @@ Connection Objects
Example::
# Convert file existing_db.db to SQL dump file dump.sql
import sqlite3, os
import sqlite3
con = sqlite3.connect('existing_db.db')
with open('dump.sql', 'w') as f: