(self, dbname)
Explicitly close a cached connection.

        Next call to get_database() will reconnect.
Explicitly close a cached connection.
Explicitly close a cached connection .
def close_database(self, dbname):
        """Explicitly close a cached connection.

        Next call to get_database() will reconnect.
        """
        if dbname in self.db_cache:
            dbc = self.db_cache[dbname]
            dbc.reset()
            del self.db_cache[dbname]
def close_database ( self , dbname ) : if dbname in self . db_cache : dbc = self . db_cache [ dbname ] dbc . reset ( ) del self . db_cache [ dbname ]