blob: 9a4e0b5b4b2e3c34e4a728717bc76e6f7e801a23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--[[
Copyright (c) 2012-2014 Kaarle Ritvanen
See LICENSE file for license details
--]]
local M = {}
M.model = require('aconf.model')
require('aconf.model.aaa')
local mods = require('aconf.loader')('modules')
M.call = require('aconf.error').call
M.object = require('aconf.object')
M.path = require('aconf.path')
M.start_txn = require('aconf.transaction')
local txn = M.start_txn()
for _, rv in pairs(mods) do if type(rv) == 'function' then rv(txn) end end
txn:commit()
local def_store = require('aconf.persistence.defer')
function M.commit() def_store:commit() end
return M
|