summaryrefslogtreecommitdiff
path: root/server/init_db.lua
blob: c4165f5f046fea74bc9632a7deda9a98dac4d26b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local lmdb = require'lmdb'
local env = assert(lmdb.open('data',{maxdbs=16}))
local txn = assert(env:txn_begin(true))

local dbs = {
	'chunks',
}

for _,dbname in ipairs(dbs) do
	assert(txn:open(dbname, true))
end

txn:commit()