from App.Model.Mysql import *

class Exesql(object):
    def __init__(self):
        self.HOST = '127.0.0.1'
        self.USER = 'db_mng_user'
        self.PASSWD = 'X2rePFHQaY-mGEdFcCM9n'
        self.DBNAME = 'db_manage_pfm'
        self.PORT = 3306
        self.query = Data_mysql(self.HOST, self.USER, self.PASSWD, self.DBNAME, self.PORT)
    def queryDB(self,mysql):
        data = self.query.select_mysql_Db(mysql)
        return data
    def insertDB(self,mysql):
        data = self.query.insert_mysql_Db(mysql)
        return data
