diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-18 11:14:16 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-18 11:14:16 +0100 |
commit | 36f5626183cfd790106eddd85a5a301735004480 (patch) | |
tree | a3a9a8ff5de3a20a633b079bd5e5e81eaaad39af /plugins/sql.lib.lua | |
parent | a7771524cb1b8dae8b1d1a58d49f1f00e4b15444 (diff) | |
parent | 7d92759bf8162dab463e4624a26642c1015a44d8 (diff) | |
download | prosody-36f5626183cfd790106eddd85a5a301735004480.tar.gz prosody-36f5626183cfd790106eddd85a5a301735004480.zip |
Merge 0.9->trunk
Diffstat (limited to 'plugins/sql.lib.lua')
-rw-r--r-- | plugins/sql.lib.lua | 9 |
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; |