mirror of
https://github.com/kennethreitz/records.git
synced 2026-06-05 23:00:20 +00:00
Note .one in the README
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user