mod_storage_internal: Add support for iterating over users in archive stores
May help with writing a better migrator
--- a/plugins/mod_storage_internal.lua Sun May 05 14:52:34 2019 +0200
+++ b/plugins/mod_storage_internal.lua Sun May 05 16:07:16 2019 +0200
@@ -211,6 +211,10 @@
return summary;
end
+function archive:users()
+ return datamanager.users(host, self.store, "list");
+end
+
function archive:delete(username, query)
local cache_key = jid_join(username, host, self.store);
if not query or next(query) == nil then