We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f818201 commit d94d869Copy full SHA for d94d869
docs/main.html
@@ -384,7 +384,7 @@ <h3>PooledDB (pooled_db)</h3>
384
db.close() # or del db</pre>
385
<p>You can also use context managers for simpler code:</p>
386
<pre class="literal-block">with pool.connection() as db:
387
- with db.cursor as cur:
+ with db.cursor() as cur:
388
cur.execute(...)
389
res = cur.fetchone()</pre>
390
<p>Note that you need to explicitly start transactions by calling the
0 commit comments