aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-03-11 16:32:41 +0000
committerMatthew Wild <mwild1@gmail.com>2020-03-11 16:32:41 +0000
commitcb6148d155ea02a68e40b8afb5861451750499ad (patch)
tree02615b481f420a642185570584bfbedd0cb35a15 /plugins
parent81f5c3e319792bec5d53c30334f3f54537aeb32b (diff)
downloadprosody-cb6148d155ea02a68e40b8afb5861451750499ad.tar.gz
prosody-cb6148d155ea02a68e40b8afb5861451750499ad.zip
storagemanager, mod_storage_sql: Rename methods to :get_all() and :delete_all()
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index a75b832d..accfa2df 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -230,9 +230,9 @@ function map_store:set_keys(username, keydatas)
return result;
end
-function map_store:find_key(key)
+function map_store:get_all(key)
if type(key) ~= "string" or key == "" then
- return nil, "find_key only supports non-empty string keys";
+ return nil, "get_all only supports non-empty string keys";
end
local ok, result = engine:transaction(function()
local query = [[
@@ -258,9 +258,9 @@ function map_store:find_key(key)
return result;
end
-function map_store:delete_key(key)
+function map_store:delete_all(key)
if type(key) ~= "string" or key == "" then
- return nil, "delete_key only supports non-empty string keys";
+ return nil, "delete_all only supports non-empty string keys";
end
local ok, result = engine:transaction(function()
local delete_sql = [[