mirror of
https://github.com/kennethreitz/records.git
synced 2026-06-05 23:00:20 +00:00
Merge pull request #54 from Brobin/master
Allow calling `as_dict` on entire RecordCollection
This commit is contained in:
@@ -189,6 +189,10 @@ class RecordCollection(object):
|
||||
|
||||
return rows
|
||||
|
||||
def as_dict(self, ordered=False):
|
||||
return self.all(as_dict=not(ordered), as_ordereddict=ordered)
|
||||
|
||||
|
||||
class Database(object):
|
||||
"""A Database connection."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user