File

plugins/sql.lib.lua @ 8093:8d1fd6d34bda

mod_bosh: Update session.conn to point to the current connection (fixes #890)
author Kim Alvefur <zash@zash.se>
date Mon, 17 Apr 2017 21:40:06 +0200
parent 5494:9916f0a2d178
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;