def __init__(self):
self.con = mdb.connect(host=config.mysql_host, user=config.mysql_user, passwd=config.mysql_passwd, db=config.mysql_db, charset=config.mysql_charset)
self.cur = self.con.cursor(mdb.cursors.DictCursor)
self.fromlist = []
self.wherelist = []
self.deletelist = []
self.selectlist = []
self.orderlist = []
self.limitlist = []
self.updatelist = []
self.inslist = []
self.leftjoinlist = []
self.selectas = ''
self.selectas_b = ''
self.sql = ''
self.withtag = False
评论列表
文章目录