Note .one in the README

This commit is contained in:
Chad Whitacre
2016-02-13 04:57:02 -05:00
parent 1d1d423245
commit ef9938623b
+7
View File
@@ -49,6 +49,13 @@ Or store a copy of your record collection for later reference:
>>> rows.all()
[<Record {"username": ...}>, <Record {"username": ...}>, <Record {"username": ...}>, ...]
If you're only expecting one result:
.. code:: python
>>> rows.one()
<Record {"username": ...}>
Other options include ``rows.as_dict()`` and ``rows.as_dict(ordered=True)``.
☤ Features