From d9a5396c1dee5f848ee997a440d4a4f2d9158823 Mon Sep 17 00:00:00 2001 From: Brobin Date: Tue, 23 Feb 2016 13:22:07 -0600 Subject: [PATCH] allow calling as_dict on entire RecordCollection --- records.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/records.py b/records.py index 5271553..c791b60 100644 --- a/records.py +++ b/records.py @@ -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."""