Software /
code /
prosody
Comparison
util/sql.lua @ 12975:d10957394a3c
util: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:16 +0100 |
parent | 12872:a20923f7d5fd |
child | 13240:a378937103cb |
comparison
equal
deleted
inserted
replaced
12974:ba409c67353b | 12975:d10957394a3c |
---|---|
2 local setmetatable, getmetatable = setmetatable, getmetatable; | 2 local setmetatable, getmetatable = setmetatable, getmetatable; |
3 local ipairs = ipairs; | 3 local ipairs = ipairs; |
4 local tostring = tostring; | 4 local tostring = tostring; |
5 local type = type; | 5 local type = type; |
6 local assert, pcall, debug_traceback = assert, pcall, debug.traceback; | 6 local assert, pcall, debug_traceback = assert, pcall, debug.traceback; |
7 local xpcall = require "util.xpcall".xpcall; | 7 local xpcall = require "prosody.util.xpcall".xpcall; |
8 local t_concat = table.concat; | 8 local t_concat = table.concat; |
9 local log = require "util.logger".init("sql"); | 9 local log = require "prosody.util.logger".init("sql"); |
10 | 10 |
11 local DBI = require "DBI"; | 11 local DBI = require "DBI"; |
12 -- This loads all available drivers while globals are unlocked | 12 -- This loads all available drivers while globals are unlocked |
13 -- LuaDBI should be fixed to not set globals. | 13 -- LuaDBI should be fixed to not set globals. |
14 DBI.Drivers(); | 14 DBI.Drivers(); |