tornado.database with DBUtils #42

Closed
smallfish opened this Issue Dec 10, 2009 · 1 comment

Projects

None yet

2 participants

@smallfish

I change it, you can look my blog: http://chenxiaoyu.org/blog/archives/82

but code is not check DBUtils version.

code:

def reconnect(self):
    """Closes the existing database connection and re-opens it."""
    self.close()
    try:
        from DBUtils import PooledDB
        pool_con = PooledDB.PooledDB(creator=MySQLdb, **self._db_args)
        self._db = pool_con.connection()
    except:
        self._db = MySQLdb.connect(**self._db_args)
        self._db.autocommit(True)
@bdarnell
Member

The tornado.database module has been removed (and moved to https://github.com/bdarnell/torndb)

@bdarnell bdarnell closed this Mar 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment