Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 7156:18b7ffd08d56
mod_storage_sql: Silence some harmless luacheck warnings
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 09 Feb 2016 17:24:04 +0100 |
parent | 7153:89fa66d4e502 |
child | 7169:d00d8cfcc9a8 |
comparison
equal
deleted
inserted
replaced
7155:4a0825984e42 | 7156:18b7ffd08d56 |
---|---|
1 | |
2 -- luacheck: ignore 212/self | |
1 | 3 |
2 local json = require "util.json"; | 4 local json = require "util.json"; |
3 local sql = require "util.sql"; | 5 local sql = require "util.sql"; |
4 local xml_parse = require "util.xml".parse; | 6 local xml_parse = require "util.xml".parse; |
5 local uuid = require "util.uuid"; | 7 local uuid = require "util.uuid"; |
123 return iterator(result); | 125 return iterator(result); |
124 end | 126 end |
125 | 127 |
126 --- Archive store API | 128 --- Archive store API |
127 | 129 |
130 -- luacheck: ignore 512 431/user 431/store | |
128 local map_store = {}; | 131 local map_store = {}; |
129 map_store.__index = map_store; | 132 map_store.__index = map_store; |
130 map_store.remove = {}; | 133 map_store.remove = {}; |
131 function map_store:get(username, key) | 134 function map_store:get(username, key) |
132 local ok, result = engine:transaction(function() | 135 local ok, result = engine:transaction(function() |