def expectcodedel(host, user, password, database, port, sql): mysql.connectdb(host, database, user, password, port) result = mysql.deletedb1(sql) return result mysql.closeconnect()
def expectcode(host, user, password, database, port, sql): mysql.connectdb(host, database, user, password, port) result = mysql.selete(sql) return result mysql.closeconnect() return result[0][0]