view plugins/sql.lib.lua @ 5498:2a67235e1d4d

moduleapi: Make module:open_store() open a store named after the calling module by default
author Kim Alvefur <zash@zash.se>
date Fri, 19 Apr 2013 14:42:32 +0200
parents 9916f0a2d178
children
line wrap: on
line source

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;