plugins/sql.lib.lua
author Matthew Wild <mwild1@gmail.com>
Sat, 27 Apr 2013 14:59:00 +0100
changeset 5527 7e7f45f587a1
parent 5494 9916f0a2d178
permissions -rw-r--r--
moduleapi: Add module:get_option_inherited_set() to return a set that inherits items from a globally set set, if set

local cache = module:shared("/*/sql.lib/util.sql");

if not cache._M then
	prosody.unlock_globals();
	cache._M = require "util.sql";
	prosody.lock_globals();
end

return cache._M;