Mercurial > prosody-hg
diff plugins/mod_storage_internal.lua @ 10001:55f5588d71c6
mod_storage_internal: Add support for iterating over users in archive stores
May help with writing a better migrator
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 05 May 2019 16:07:16 +0200 |
| parents | 7c4631d7b6fb |
| children | 7408b9473729 |
line wrap: on
line diff
--- 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
