diff options
Diffstat (limited to 'db.lua')
-rw-r--r-- | db.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -0,0 +1,6 @@ +local lmdb=require'lmdb' +local env=lmdb.open('data',{maxdbs=16}) +return { + env=env, + txn=function(...) return env.txn_begin(...) end, +} |