def getUserCursor(db):
    db = MySQLdb.connect(db=db, read_default_file=os.environ['HOME']
                         + '/.my.cnf', compress=True)
    return db.cursor()
get a cursor as the current user
dataset/ETHPy150Open cjlee112/pygr/pygr/apps/leelabdb.py/getUserCursor