Mercurial > prosody-hg
diff core/storagemanager.lua @ 10680:19692fc5c106
storagemanager, mod_storage_sql: Rename methods to :get_all() and :delete_all()
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 11 Mar 2020 16:32:41 +0000 |
| parents | b50b1eae711c |
| children | 52fcdfe710ca |
line wrap: on
line diff
--- a/core/storagemanager.lua Wed Mar 11 16:29:57 2020 +0000 +++ b/core/storagemanager.lua Wed Mar 11 16:32:41 2020 +0000 @@ -167,9 +167,9 @@ return self.keyval_store:set(username, current); end; remove = {}; - find_key = function (self, key) + get_all = function (self, 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 ret; for username in self.keyval_store:users() do @@ -183,9 +183,9 @@ end return ret; end; - delete_key = function (self, key) + delete_all = function (self, 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 data = { [key] = self.remove }; local last_err;
