diff options
author | michele.simionato <devnull@localhost> | 2009-02-06 16:52:15 +0000 |
---|---|---|
committer | michele.simionato <devnull@localhost> | 2009-02-06 16:52:15 +0000 |
commit | e5b8063867fdb9005505b50c78e8ca63f6a5450e (patch) | |
tree | 1b7c9e04d5fd5370c32e29cef5c1356e08c95809 /sqlplain/connection.py | |
parent | 651ea048fbfe1a3b9b1f731d37449e1c59ea4da3 (diff) | |
download | micheles-e5b8063867fdb9005505b50c78e8ca63f6a5450e.tar.gz |
Added an (experimental) rowcount property to the connection
Diffstat (limited to 'sqlplain/connection.py')
-rw-r--r-- | sqlplain/connection.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sqlplain/connection.py b/sqlplain/connection.py index fff78ec..b3d31c5 100644 --- a/sqlplain/connection.py +++ b/sqlplain/connection.py @@ -222,6 +222,10 @@ class LazyConnection(object): def __repr__(self): return "<%s %s>" % (self.__class__.__name__, self.uri) + @property + def rowcount(self): + return self._storage.curs.rowcount + class TransactionalConnection(LazyConnection): """ Add commit and rollback methods to a LazyConnection, as well |