diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-03-27 15:46:42 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-03-27 15:46:42 (GMT) |
commit | 598b198ca6f5d590bb674f9c0d92087dea6642b0 (patch) | |
tree | 0cf76032d3a6d6cc764020891f0eb86128758198 /Doc | |
parent | afd465d49707618f40d3c64fa499a38f9c9db3d2 (diff) | |
parent | 557a06309c212d0218191253afe020df01133c1f (diff) | |
download | cpython-598b198ca6f5d590bb674f9c0d92087dea6642b0.zip cpython-598b198ca6f5d590bb674f9c0d92087dea6642b0.tar.gz cpython-598b198ca6f5d590bb674f9c0d92087dea6642b0.tar.bz2 |
sqlite3 documentation: Connection.iterdump() is a method
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sqlite3.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index aee444b..c5a5e81 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -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: |