Software / code / prosody
Changeset
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 | 10000:189b00a782bf |
| children | 10002:b6b5b9d7417d |
| files | plugins/mod_storage_internal.lua |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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