Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 11271:41a962b72a6e
mod_storage_sql: Advertise support for id range query
That is, a query for items between two IDs (not inclusive).
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 Jan 2021 21:08:33 +0100 |
parent | 10993:b5e7f4d533e2 |
child | 11279:f225070e2b8a |
comparison
equal
deleted
inserted
replaced
11270:eaaa8ca742a7 | 11271:41a962b72a6e |
---|---|
280 local archive_store = {} | 280 local archive_store = {} |
281 archive_store.caps = { | 281 archive_store.caps = { |
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 }; | 286 }; |
286 archive_store.__index = archive_store | 287 archive_store.__index = archive_store |
287 function archive_store:append(username, key, value, when, with) | 288 function archive_store:append(username, key, value, when, with) |
288 local user,store = username,self.store; | 289 local user,store = username,self.store; |
289 local cache_key = jid_join(username, host, store); | 290 local cache_key = jid_join(username, host, store); |