Software /
code /
prosody
Comparison
plugins/sql.lib.lua @ 5494:9916f0a2d178
mod_storage_sql2 (temporary name), sql.lib, util.sql: New SQL API supporting cross-module connection sharing, transactions and Things - a work in progress
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 18 Apr 2013 11:13:40 +0100 |
comparison
equal
deleted
inserted
replaced
5492:5d0cc5de5c51 | 5494:9916f0a2d178 |
---|---|
1 local cache = module:shared("/*/sql.lib/util.sql"); | |
2 | |
3 if not cache._M then | |
4 prosody.unlock_globals(); | |
5 cache._M = require "util.sql"; | |
6 prosody.lock_globals(); | |
7 end | |
8 | |
9 return cache._M; |