[erlang] mnesia orm
摘要:
使用mneisa存储数据不想每次mneisa:table的调用 所以写了个简单的orm只有查询defined.hrl1 %% 定义记录结构2 -record(shop,{item,quantity,cost}).3 -record(cost,{name,price}).init_data.erl 1 -module(init_data). 2 -compile(export_all). 3 4 -include("defined.hrl"). 5 -include_lib("stdlib/include/qlc.hrl"). 6 7 8 start() 阅读全文
posted @ 2012-06-13 19:41
bluefrog
阅读(1539)
评论(1)
推荐(0)
浙公网安备 33010602011771号