Commit 598b198c authored by Berker Peksag's avatar Berker Peksag

sqlite3 documentation: Connection.iterdump() is a method

parents afd465d4 557a0630
...@@ -495,7 +495,7 @@ Connection Objects ...@@ -495,7 +495,7 @@ Connection Objects
deleted since the database connection was opened. 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 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 saving an in-memory database for later restoration. This function provides
...@@ -505,7 +505,7 @@ Connection Objects ...@@ -505,7 +505,7 @@ Connection Objects
Example:: Example::
# Convert file existing_db.db to SQL dump file dump.sql # Convert file existing_db.db to SQL dump file dump.sql
import sqlite3, os import sqlite3
con = sqlite3.connect('existing_db.db') con = sqlite3.connect('existing_db.db')
with open('dump.sql', 'w') as f: with open('dump.sql', 'w') as f:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment