view plugins/sql.lib.lua @ 6379:a280bd6ccce2

net.server_{select,event}: Add 'ondetach' callback for listener objects, to notify them when another listener is being assigned to a connection
author Matthew Wild <mwild1@gmail.com>
date Fri, 29 Aug 2014 11:39:56 +0100
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;