def __init__(self, conf=read_db_config()): self.conn = MySQLdb.connect(**conf) self.cursor = self.conn.cursor(MySQLdb.cursors.DictCursor)
def __init__(self, base=None): self.base = base or BaseDao(read_db_config())
def __init__(self, user='', base=''): self.user = user if not base: base = BaseDao(read_db_config()) self.base = base
def __init__(self, num=50): self.base = BaseDao(read_db_config()) self.num = num