From 9262c3e7c0a49859bac28e268bbcaa6523e02e41 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 18 Dec 2019 09:00:36 +0000 Subject: [PATCH] Corrected Database(memory=True) documentation --- docs/python-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/python-api.rst b/docs/python-api.rst index 40d3289..de67c1d 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -27,7 +27,7 @@ If you want to create an in-memory database, you can do so like this: .. code-block:: python - db = Database(sqlite3.connect(memory=True)) + db = Database(memory=True) Tables are accessed using the indexing operator, like so: