1: local 字集库 = require("u8_to_a")
2: local 档库 = require("lsqlite3")
3: local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文"))
4: local 对库 = require(字集库.u8_to_a("算机_程语_月_基类_表_对"))
5: local d = {}
6: local 卡档
7: --~ 卡编
8: function d.取卡对(o1)
9: local k1_0, k2_0
10: --~ 卡文对
11: k1_0 = d.取卡文(o1)
12: --~ 卡数据对
13: k2_0 = d.取卡数据(o1)
14: return 对库.连两对(k1_0, k2_0)
15: end
16: do
17: local k1
18: --~ 模
19: k1 = "select * from texts where id = "
20: --~ 卡编
21: function d.取卡文(o1)
22: for o1_4 in 卡档:nrows(文库.连(k1, o1)) do
23: return o1_4
24: end
25: end
26: end
27: do
28: local k1
29: --~ 模
30: k1 = "select * from datas where id = "
31: --~ 卡编
32: function d.取卡数据(o1)
33: for o1_4 in 卡档:nrows(文库.连(k1, o1)) do
34: return o1_4
35: end
36: end
37: end
38: --~ 卡档路
39: function d.启卡档(o1)
40: 卡档 = 档库.open(o1)
41: end
42: return d
43: