changeset 101 | 2a2d0d5df03b |
parent 89 | 6b72d61837b1 |
--- a/pgtoolkit/pgmanager.py Tue May 06 18:37:41 2014 +0200 +++ b/pgtoolkit/pgmanager.py Tue May 06 18:37:43 2014 +0200 @@ -334,6 +334,9 @@ del self.conn_known[name] del self.conn_pool[name] + def knows_conn(self, name='default'): + return name in self.conn_known + def get_conn(self, name='default'): '''Get connection of name 'name' from pool.''' self._check_fork()