Beispiel #1
0
#-*-coding:utf8-*-
"""
Created on 2013-6-5

@author: lan (www.9miao.com)
"""
from mmode import MAdmin

tbitemadmin = MAdmin('tb_item', 'id', fk='characterId', incrkey='id')
tbitemadmin.insert()
tb_character_admin = MAdmin('tb_character', 'id', incrkey='id')
tb_character_admin.insert()
tb_zhanyi_record_admin = MAdmin('tb_zhanyi_record',
                                'id',
                                fk='characterId',
                                incrkey='id')
tb_zhanyi_record_admin.insert()
tb_matrix_amin = MAdmin('tb_character_matrix', 'characterId', incrkey='id')
tb_matrix_amin.insert()
tb_equipment = MAdmin('tb_equipment', 'characterId', incrkey='id')
tb_equipment.insert()
tbpetadmin = MAdmin('tb_pet', 'id', fk='ownerID', incrkey='id')
tbpetadmin.insert()
Beispiel #2
0
#coding:utf8
"""
Created on 2013年9月4日

@author: MSI
"""
from mmode import MAdmin

register_admin = MAdmin(
    'tb_register',
    'username')  #从数据库中读取tb_register表中的信息,key为第二个参数,即 username,value为对应的信息
register_admin.insert()  #将数据写入到memcached中