mirror of
https://github.com/kennethreitz/records.git
synced 2026-06-05 14:50:18 +00:00
Update README.rst
This commit is contained in:
@@ -34,6 +34,8 @@ Or iterate over them:
|
||||
for r in rows:
|
||||
spam_user(name=r.name, email=r.user_email)
|
||||
|
||||
Values can be accessed many ways: ``row.user_email``, ``row['user_email']``, or ``row[3]``. Fields with non-alphanumeric charecters (like spaces) are also fully supported.
|
||||
|
||||
Or store them all for later reference:
|
||||
|
||||
.. code:: python
|
||||
@@ -41,6 +43,8 @@ Or store them all for later reference:
|
||||
>>> rows.all()
|
||||
[<Record {"username": ...}>, <Record {"username": ...}>, <Record {"username": ...}>, ...]
|
||||
|
||||
If you'd prefer to have a copy of your record collection, use ``rows.as_dict()`` or ``rows.as_dict(ordered=True)``.
|
||||
|
||||
☤ Features
|
||||
----------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user