[Python-checkins] cpython (3.5): sqlite3 documentation: Connection.iterdump() is a method
berker.peksag
python-checkins at python.org
Sun Mar 27 11:44:51 EDT 2016
https://hg.python.org/cpython/rev/49d2a7fe536d
changeset: 100766:49d2a7fe536d
branch: 3.5
parent: 100763:af92651c22e9
user: Berker Peksag <berker.peksag at gmail.com>
date: Sun Mar 27 18:46:18 2016 +0300
summary:
sqlite3 documentation: Connection.iterdump() is a method
files:
Doc/library/sqlite3.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -495,7 +495,7 @@
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 @@
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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list