aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_internal.lua
Commit message (Collapse)AuthorAgeFilesLines
* plugins: Prefix module imports with prosody namespaceKim Alvefur2023-03-241-9/+9
|
* mod_storage_internal: Stop storing XEP-0091 timestampKim Alvefur2021-09-041-2/+1
| | | | | | | Should no longer be used by anything since the conversion of mod_offline to the archive API in 0.10.0, which was 4 years ago. The line clearing the property is left for a bit longer in case someone has very old offline messages or archived data.
* mod_storage_internal: Support query for set of IDsKim Alvefur2021-01-121-0/+8
| | | | Based on implementation in mod_storage_memory
* mod_storage_internal: Add support for full ID range queryKim Alvefur2021-01-121-2/+5
| | | | Based on the mod_storage_memory implementation
* mod_storage_internal, mod_storage_memory: Add support for query.beforeMatthew Wild2020-06-121-2/+6
| | | | Previously returned all results.
* Merge 0.11->trunkKim Alvefur2020-05-151-2/+4
|\
| * mod_storage_internal: Fix error in time limited queries on items without ↵Kim Alvefur2020-05-151-2/+4
| | | | | | | | 'when' field, fixes #1557
* | mod_storage_internal: Fix keeping old timestamp in archive map APIKim Alvefur2020-05-151-1/+1
| | | | | | | | | | This led to a missing 'when' field on changed items, which would cause a traceack.
* | mod_storage_internal: Implement key-value APIKim Alvefur2020-05-111-0/+40
| |
* | mod_storage_internal: Include last text messageKim Alvefur2019-08-231-1/+4
| | | | | | | | | | | | A protocol built on this API now allows showing a list of unread conversations with a counter, ordered by either oldest or newest message, along with the text body itself.
* | mod_storage_*: Also include timestmap of first message in :summary APIKim Alvefur2019-08-231-0/+5
| | | | | | | | | | For completeness along with most recent timestamp. Might be nice to be able to order by oldest unread message.
* | mod_storage_*: Include timestamp of latest message in :summary APIKim Alvefur2019-08-231-1/+4
| | | | | | | | | | | | | | 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.
* | mod_storage_*: Tweak :summary API to allow future expansion with more fieldsKim Alvefur2019-08-231-3/+5
| | | | | | | | Eg might want to include last message, timestamp, chat state or other info.
* | mod_storage_internal: Return appropriate error even with empty archiveKim Alvefur2019-05-051-0/+3
| |
* | mod_storage_internal: Return error if 'before' or 'after' are not found ↵Kim Alvefur2019-03-051-0/+10
| | | | | | | | (partial fix for #1325)
* | mod_storage_internal: Add support for iterating over users in archive storesKim Alvefur2019-05-051-0/+4
| | | | | | | | May help with writing a better migrator
* | mod_storage_internal,memory: Only return total count if requestedKim Alvefur2019-05-051-6/+11
| |
* | mod_storage_internal: Implement a summary API returning message counts per ↵Kim Alvefur2019-02-251-0/+10
| | | | | | | | contact
* | mod_storage_internal: Include store name when reporting quota statusKim Alvefur2019-03-221-1/+1
| |
* | mod_storage_internal: Increase default quota to 10 000Kim Alvefur2019-03-221-1/+1
| | | | | | | | | | | | Performance doesn't seem great but 10k should be far enough from limits inherited by the Lua parser. 1000 messages seemed pretty close to what an active user might produce in one week.
* | mod_storage_internal,_sql: Key item count cache on both username and storeKim Alvefur2019-03-221-8/+11
| |
* | mod_storage_internal,_sql: Expose archive capabilities feature setKim Alvefur2019-03-221-0/+6
| | | | | | | | This was planned to be added long ago but was forgotten.
* | mod_storage_internal,_sql: Add limit to number of items in an archive store ↵Matthew Wild2017-10-201-0/+35
|/ | | | (fixes #733)
* mod_storage_internal: Only apply truncate if there are more items than requestedKim Alvefur2018-08-041-1/+1
|
* mod_storage_internal: Skip write if no items matched a deletion queryKim Alvefur2017-11-191-0/+3
|
* mod_storage_internal: Optimize truncationKim Alvefur2017-11-101-4/+5
|
* mod_storage_internal: Allow truncating deletion at the beginning or end of ↵Kim Alvefur2017-11-091-0/+15
| | | | an archive store
* mod_storage_internal: Add more extensive query support to archive:delete methodKim Alvefur2017-10-091-6/+22
|
* mod_storage_internal: Add support for archive key deduplication (like ↵Kim Alvefur2017-10-091-2/+21
| | | | mod_storage_sql)
* mod_storage_internal: Return a noop iterator if archive is empty (fixes #920)Kim Alvefur2017-07-051-1/+7
|
* mod_storage_internal: Handle case of empty item store when deleting (fixes #910)Kim Alvefur2017-05-141-1/+7
|
* mod_storage_internal: Correctly calculate number of deleted items (fixes #912)Kim Alvefur2017-05-141-1/+2
|
* mod_storage_internal: Support the 'key' archive query fieldKim Alvefur2017-04-151-0/+5
|
* mod_storage_internal: Add the dates methodKim Alvefur2017-03-311-0/+6
|
* mod_storage_internal: Add support for removing archived itemsKim Alvefur2017-03-311-0/+19
|
* mod_storage_internal: Add basic archive store implementationKim Alvefur2017-03-311-0/+85
|
* mod_storage_internal: Ignore unused 'self' argument [luacheck]Kim Alvefur2017-03-311-2/+2
|
* mod_storage_internal: Reorder methodsKim Alvefur2017-03-311-8/+8
|
* mod_storage_internal: Separate driver from keyval implementationKim Alvefur2017-03-311-6/+10
|
* mod_storage_{none,internal,sql}: Return error for unsupported (everything ↵Kim Alvefur2014-06-201-0/+3
| | | | but keyval) store types
* mod_storage_internal, datamanager: Add support for iterating over users with ↵Kim Alvefur2012-09-211-2/+6
| | | | data in a store
* Merge 0.9->trunkMatthew Wild2012-09-191-2/+2
|\
| * storagemanager, datamanager, mod_storage_{internal,sql}: Replace ↵Kim Alvefur2012-09-171-2/+2
| | | | | | | | list_stores() with an iterator version
* | mod_storage_*: Don't explicitly set driver name, to ease copying/renaming ↵Waqas Hussain2012-09-121-1/+1
| | | | | | | | modules.
* | core.storagemanager, mod_storage_*: "data-driver" -> "storage-provider", to ↵Waqas Hussain2012-09-121-1/+1
|/ | | | allow using module:provides().
* mod_storage_internal: Add method for removing all data belonging to a userKim Alvefur2012-07-281-0/+4
|
* mod_storage_internal: Add method for listing storesKim Alvefur2012-07-281-0/+4
|
* storagemanager, mod_storage_internal: Split out default driver to ↵Matthew Wild2011-01-071-0/+19
mod_storage_internal, and greatly simplify storagemanager's error handling and fallback code