mirror of
https://github.com/kennethreitz/records.git
synced 2026-06-05 06:46:17 +00:00
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