def main(): sqldoc.fd=mypub.fielddesc(); sqldoc.fd.init("./sqldesc.txt"); sqldoc.conn=MySQLdb.connect(host="localhost",user="******",passwd="ta0mee",db="") sqldoc.cursor=sqldoc.conn.cursor() #优先显示的DB列表 sort_db_list=["IM_"]; sqldoc.gen_sqldoc(sort_db_list)
def main(): sqldoc.fd=mypub.fielddesc(); sqldoc.fd.init("/home/easyeagel/DB/bin/sqldesc.txt"); sqldoc.conn=MySQLdb.connect(host="10.1.1.5",user="******",passwd="ta0mee",db="") sqldoc.cursor=sqldoc.conn.cursor() #优先显示的DB列表 sort_db_list=["PP_","PP_PK_TEAM_","PP_OTHER_DB","TASK_DAY_DB","PP_LOG_DB" ]; sqldoc.gen_sqldoc(sort_db_list)
def main(): sqldoc.fd = mypub.fielddesc() sqldoc.fd.init("./sqldesc.txt") sqldoc.conn = MySQLdb.connect(host="localhost", user="******", passwd="ta0mee", db="") sqldoc.cursor = sqldoc.conn.cursor() #优先显示的DB列表 sort_db_list = ["IM_"] sqldoc.gen_sqldoc(sort_db_list)
def main(): sqldoc.fd=mypub.fielddesc(); sqldoc.fd.init("/home/tommychen/DB/bin/sqldesc.txt"); sqldoc.conn=MySQLdb.connect(host="10.1.1.23",user="******",passwd="ta0mee",db="") sqldoc.cursor=sqldoc.conn.cursor() #优先显示的DB列表 sort_db_list=["USER_INFO_", "EMAIL_DB_","USER_","EMAIL_SYS_","ROOMINFO_","ROOMMSG_", "MMS_","HOPE_DB","PARTY_DB","GROUP_", "SYSARG_DB", "GROUP_MAIN","USER_SERIAL_DB"]; sqldoc.gen_sqldoc(sort_db_list)
def do_mole_main(argv): global work_dir , fd, conn, cursor work_dir="/home/tommychen/DB" fd=mypub.fielddesc(); fd.init( work_dir+"/bin/sqldesc.txt"); conn=MySQLdb.connect(host="10.1.1.23",user="******",passwd="ta0mee",db="") cursor=conn.cursor() sort_db_list=["USER_INFO_", "EMAIL_DB_","USER_","EMAIL_SYS_","ROOMINFO_","ROOMMSG_", "MMS_","HOPE_DB","PARTY_DB","GROUP_", "SYSARG_DB", "GROUP_MAIN","USER_SERIAL_DB"]; no_do_list=["CUP_DB","PP_","SPRING_DB","CHRISTMAS_DB", "REGISTER_SERIAL_DB","CONFECT_DB","TEMPGS_DB","PET_SPORTS_DB","SERIAL_DB" ] gen_sqldoc(sort_db_list,no_do_list )
def main(): sqldoc.fd = mypub.fielddesc() sqldoc.fd.init("/home/tommychen/DB/bin/sqldesc.txt") sqldoc.conn = MySQLdb.connect(host="10.1.1.23", user="******", passwd="ta0mee", db="") sqldoc.cursor = sqldoc.conn.cursor() #优先显示的DB列表 sort_db_list = [ "USER_INFO_", "EMAIL_DB_", "USER_", "EMAIL_SYS_", "ROOMINFO_", "ROOMMSG_", "MMS_", "HOPE_DB", "PARTY_DB", "GROUP_", "SYSARG_DB", "GROUP_MAIN", "USER_SERIAL_DB" ] sqldoc.gen_sqldoc(sort_db_list)
def do_mole_main(argv): global work_dir, fd, conn, cursor work_dir = "/home/tommychen/DB" fd = mypub.fielddesc() fd.init(work_dir + "/bin/sqldesc.txt") conn = MySQLdb.connect(host="10.1.1.23", user="******", passwd="ta0mee", db="") cursor = conn.cursor() sort_db_list = [ "USER_INFO_", "EMAIL_DB_", "USER_", "EMAIL_SYS_", "ROOMINFO_", "ROOMMSG_", "MMS_", "HOPE_DB", "PARTY_DB", "GROUP_", "SYSARG_DB", "GROUP_MAIN", "USER_SERIAL_DB" ] no_do_list = [ "CUP_DB", "PP_", "SPRING_DB", "CHRISTMAS_DB", "REGISTER_SERIAL_DB", "CONFECT_DB", "TEMPGS_DB", "PET_SPORTS_DB", "SERIAL_DB" ] gen_sqldoc(sort_db_list, no_do_list)
import mypub work_dir = "/home/tommychen/DB/" struct_conf = {} typedef_conf = {} command_conf = {} type_conf = { "userid_t": "Uint32", "int32_t": "int32", "uint32_t": "Uint32", "uint8_t": "Uint8", "char": "char", "uint16_t": "Uint16" } fd = mypub.fielddesc() fd.init(work_dir + "/include/field_desc.txt") err_conf = {} func_err_conf = {} db_conf = {} #需要屏蔽的错误 cmd_nouse_err_conf = {} def gen_cmd_nouse_err_conf(): global cmd_nouse_err_conf pf = open(work_dir + "/bin/cmd_nouse_err.txt", "r") line = ""
import mypub work_dir="/home/tommychen/DB/" struct_conf={} typedef_conf={} command_conf={} type_conf={ "userid_t":"Uint32", "int32_t":"int32", "uint32_t":"Uint32", "uint8_t":"Uint8", "char":"char", "uint16_t":"Uint16" } fd=mypub.fielddesc(); fd.init( work_dir+"/include/field_desc.txt"); err_conf={ } func_err_conf={} db_conf={} #需要屏蔽的错误 cmd_nouse_err_conf={ } def gen_cmd_nouse_err_conf(): global cmd_nouse_err_conf pf=open(work_dir+"/bin/cmd_nouse_err.txt","r") line="" for line in pf.readlines():