Skip to content

Commit 4281aae

Browse files
committed
Tweak tutorial to distinguish from DB-API 2.0
1 parent ec05eb6 commit 4281aae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

postgres.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
>>> db.run("INSERT INTO foo VALUES ('baz')")
3030
>>> db.run("INSERT INTO foo VALUES ('buz')")
3131
32-
Use :py:meth:`~postgres.Postgres.all` to fetch all results:
32+
Use :py:meth:`~postgres.Postgres.all` to run SQL and fetch all results:
3333
3434
>>> db.all("SELECT * FROM foo ORDER BY bar")
3535
[{'bar': 'baz'}, {'bar': 'buz'}]
3636
37-
Use :py:meth:`~postgres.Postgres.one_or_zero` to fetch one result or
38-
:py:class:`None`:
37+
Use :py:meth:`~postgres.Postgres.one_or_zero` to run SQL and fetch one result
38+
or :py:class:`None`:
3939
4040
>>> db.one_or_zero("SELECT * FROM foo WHERE bar='baz'")
4141
{'bar': 'baz'}

0 commit comments

Comments
 (0)