Project

General

Profile

« Previous | Next » 

Revision 3125

sql.py: Added reconnect()

View differences:

lib/sql.py
195 195
        self.db.close()
196 196
        self._reset()
197 197
    
198
    def reconnect(self):
199
        # Do not do this in test mode as it would roll back everything
200
        if self.autocommit: self.close()
201
        # Connection will be reopened automatically on first query
202
    
198 203
    def _db(self):
199 204
        if self.__db == None:
200 205
            # Process db_config

Also available in: Unified diff