@@ -292,7 +292,7 @@ def one(self, sql, parameters=None, strict=None):
292
292
:type parameters: dict or tuple
293
293
:param strict: whether to raise when there isn't exactly one result
294
294
:type strict: :py:class:`bool`
295
- :returns: :py:class:`dict` or :py:const:`None`
295
+ :returns: a single row or :py:const:`None`
296
296
:raises: :py:exc:`~postgres.TooFew` or :py:exc:`~postgres.TooMany`
297
297
298
298
By default, :py:attr:`strict` ends up evaluating to :py:class:`True`,
@@ -334,7 +334,7 @@ def rows(self, sql, parameters=None):
334
334
:param unicode sql: the SQL statement to execute
335
335
:param parameters: the bind parameters for the SQL statement
336
336
:type parameters: dict or tuple
337
- :returns: :py:class:`list` of :py:class:`dict`
337
+ :returns: :py:class:`list` of rows
338
338
339
339
>>> for row in db.rows("SELECT bar FROM foo"):
340
340
... print(row["bar"])
@@ -351,9 +351,9 @@ def get_cursor(self, *a, **kw):
351
351
"""Return a :py:class:`~postgres.CursorContextManager` that uses our
352
352
connection pool.
353
353
354
- This is what :py:meth:`~postgres.Postgres.execute `,
355
- :py:meth:`~postgres.Postgres.fetchone `, and
356
- :py:meth:`~postgres.Postgres.fetchall ` use under the hood. You might
354
+ This is what :py:meth:`~postgres.Postgres.run `,
355
+ :py:meth:`~postgres.Postgres.one `, and
356
+ :py:meth:`~postgres.Postgres.rows ` use under the hood. You might
357
357
use it if you want to access `cursor attributes
358
358
<http://initd.org/psycopg/docs/cursor.html>`_, for example.
359
359
0 commit comments