aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sql.lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sql.lib.lua')
-rw-r--r--plugins/sql.lib.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/sql.lib.lua b/plugins/sql.lib.lua
new file mode 100644
index 00000000..005ee45d
--- /dev/null
+++ b/plugins/sql.lib.lua
@@ -0,0 +1,9 @@
+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;