Kim Alvefur
5d5615daff
mod_storage_memory: Support query for set of IDs
5 years ago
Kim Alvefur
7ed7be7957
mod_storage_memory: Support full ID range queries
5 years ago
Matthew Wild
6a126c350f
mod_storage_internal, mod_storage_memory: Add support for query.before
...
Previously returned all results.
6 years ago
Kim Alvefur
c9498a4d00
mod_storage_memory: Add map store methods to archive store
6 years ago
Kim Alvefur
efd7a8c226
mod_storage_*: Also include timestmap of first message in :summary API
...
For completeness along with most recent timestamp. Might be nice to be
able to order by oldest unread message.
6 years ago
Kim Alvefur
5a382ce091
mod_storage_*: Include timestamp of latest message in :summary API
...
Clients may want to show a list of conversations ordered by how
timestamp of most recent message.
The counts allow a badge with unread message counter.
6 years ago
Kim Alvefur
24670cf607
mod_storage_*: Tweak :summary API to allow future expansion with more fields
...
Eg might want to include last message, timestamp, chat state or other info.
6 years ago
Kim Alvefur
d0075a2784
mod_storage_memory: Implement :user iteration API
7 years ago
Kim Alvefur
258089ed26
mod_storage_memory: Generate ID using standard util ( fixes #1326 )
...
The previous method relied on tostring(table) returning the pointer address,
which might not be portable.
7 years ago
Kim Alvefur
c270d949f2
mod_storage_memory: Replace query function with one based on storage_internal ( fixes #1322 )
...
The :find method in storage_internal works and is easier to read and
understand. Future changes should be simpler to apply to both modules.
7 years ago
Kim Alvefur
faf1282ee2
mod_storage_memory: Return correct error even if no archive data available
7 years ago
Kim Alvefur
59b4972c34
mod_storage_memory: Return error if 'before' or 'after' are not found (partial fix for #1325 )
7 years ago
Kim Alvefur
200664ab8a
mod_storage_internal,memory: Only return total count if requested
7 years ago
Kim Alvefur
88b509b835
mod_storage_memory: Support the purge driver method
7 years ago
Kim Alvefur
520bc69684
mod_storage_memory: Adapt archive deletion code from mod_storage_internal
7 years ago
Kim Alvefur
70ee23c2d6
mod_storage_memory: Fix overwriting old keys
...
Test fixed is: spec/core_storagemanager_spec.lua:309: Expected objects to be equal.
7 years ago
Kim Alvefur
cf7a0c252a
mod_storage_memory: Remove compat for very early argument order
7 years ago
Matthew Wild
6c51edbedd
mod_storage_memory: Switch from '@' prefix to '=' for chunks, '@' is used to indicate a source file name only
7 years ago
Kim Alvefur
beedd0937e
mod_storage_memory: Fix saving of remaining items during deletion
...
All data is compiled into functions that return new copies in order to
prevent mutation of stored data.
This has downsides.
Also an ugly hack.
7 years ago
Matthew Wild
6b7525d3c9
mod_storage_memory: Import from prosody-modules 4c3230c22c18
7 years ago
Kim Alvefur
eda65b96f8
mod_storage_memory: Fix copypaste mistake
7 years ago
Kim Alvefur
4a2f052361
mod_storage_memory: Implement archive summary API
7 years ago
Kim Alvefur
d1ad7d4988
mod_storage_memory: Add support for archive item limits
7 years ago
Kim Alvefur
4a1dec0392
mod_storage_memory: Implement :user iteration API
7 years ago