Exemplo n.º 1
0
 def __init__(self):
     self.db = Redis(host=HOST, db=SCREEN, port=PORT)
     self.cache = Redis(host=HOST, db=CACHE, port=PORT)
Exemplo n.º 2
0
 def __init__(self):
     self.db = Redis(host=HOST, db=BET_INFO, port=PORT)
Exemplo n.º 3
0
 def __init__(self):
     self.db = Redis(host=HOST, db=LOG, port=PORT)
Exemplo n.º 4
0
SRCMYSQL = Mysql(
    host=mysql_src_item['host'],
    user=mysql_src_item['user'],
    port=mysql_src_item['port'],
    password=mysql_src_item['password'],
    charactor=mysql_src_item['charactor'],
    dblist=mysql_src_item['db'].split(','),
)

DSTMYSQL = Mysql(
    host=mysql_dst_item['host'],
    user=mysql_dst_item['user'],
    port=mysql_dst_item['port'],
    password=mysql_dst_item['password'],
    charactor=mysql_dst_item['charactor'],
    dblist=mysql_src_item['db'].split(','),
)

redisins = Redis(
    host=redis_item['host'],
    port=redis_item['port'],
    password=redis_item['password'],
)

#初始化数据
db_table_column_info = SRCMYSQL.get_db_table_column_info(
    excludeTable=mysql_src_item['exclude'].split(','),
    includeTable=mysql_src_item['include'].split(','))

db_table_column_info = json.loads(db_table_column_info)