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 ec05eb6 commit 4281aaeCopy full SHA for 4281aae
postgres.py
@@ -29,13 +29,13 @@
29
>>> db.run("INSERT INTO foo VALUES ('baz')")
30
>>> db.run("INSERT INTO foo VALUES ('buz')")
31
32
-Use :py:meth:`~postgres.Postgres.all` to fetch all results:
+Use :py:meth:`~postgres.Postgres.all` to run SQL and fetch all results:
33
34
>>> db.all("SELECT * FROM foo ORDER BY bar")
35
[{'bar': 'baz'}, {'bar': 'buz'}]
36
37
-Use :py:meth:`~postgres.Postgres.one_or_zero` to fetch one result or
38
-:py:class:`None`:
+Use :py:meth:`~postgres.Postgres.one_or_zero` to run SQL and fetch one result
+or :py:class:`None`:
39
40
>>> db.one_or_zero("SELECT * FROM foo WHERE bar='baz'")
41
{'bar': 'baz'}
0 commit comments