From: Raymond Hettinger Date: Wed, 1 Feb 2012 21:32:45 +0000 (-0800) Subject: Show the import in the sqlite3 example X-Git-Tag: v2.7.3rc1~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81a55c01b8bebf42f91d45a483b6c42f10b5506d;p=python Show the import in the sqlite3 example --- diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index e36807c74d..b4d58b9b68 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -22,6 +22,7 @@ To use the module, you must first create a :class:`Connection` object that represents the database. Here the data will be stored in the :file:`/tmp/example` file:: + import sqlite3 conn = sqlite3.connect('/tmp/example') You can also supply the special name ``:memory:`` to create a database in RAM.