summaryrefslogtreecommitdiff
path: root/db.lua
diff options
context:
space:
mode:
Diffstat (limited to 'db.lua')
-rw-r--r--db.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/db.lua b/db.lua
new file mode 100644
index 0000000..e87b1b6
--- /dev/null
+++ b/db.lua
@@ -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,
+}