Comparison

plugins/mod_storage_sql.lua @ 11967:0f2b5182e80b

mod_storage_sql: Expose multi-user deletion capability archive_store:delete(true) deletes messages for all users, which would allow some simplification when this is supported.
author Kim Alvefur <zash@zash.se>
date Tue, 30 Nov 2021 01:21:02 +0100
parent 11625:04abe65b8067
child 11969:395dce95508d
comparison
equal deleted inserted replaced
11966:4c5087ce3c2e 11967:0f2b5182e80b
282 total = true; 282 total = true;
283 quota = archive_item_limit; 283 quota = archive_item_limit;
284 truncate = true; 284 truncate = true;
285 full_id_range = true; 285 full_id_range = true;
286 ids = true; 286 ids = true;
287 wildcard_delete = true;
287 }; 288 };
288 archive_store.__index = archive_store 289 archive_store.__index = archive_store
289 function archive_store:append(username, key, value, when, with) 290 function archive_store:append(username, key, value, when, with)
290 local user,store = username,self.store; 291 local user,store = username,self.store;
291 local cache_key = jid_join(username, host, store); 292 local cache_key = jid_join(username, host, store);