aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
Commit message (Collapse)AuthorAgeFilesLines
...
* | mod_storage_sql: Remove unused and not actually returned return value [luacheck]Kim Alvefur2019-12-241-1/+1
| | | | | | | | The :delete throws an error, it does not return one like this.
* | mod_storage_*: Also include timestmap of first message in :summary APIKim Alvefur2019-08-231-3/+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_sql: Ignore shadowed error variable [luacheck]Kim Alvefur2019-05-281-1/+1
| |
* | mod_storage_sql: Fix to use correct arguments to archive id lookupKim Alvefur2019-05-281-2/+2
| |
* | mod_storage_sql: Correctly return item-not-found errorKim Alvefur2019-05-281-2/+3
| | | | | | | | `return ok, err` comes out as `transaction_ok, ok, err`
* | mod_storage_sql: Look up archive IDs in separate queries (fixes #1325)Kim Alvefur2019-03-231-29/+29
| | | | | | | | This is probably not good for performance.
* | Merge 0.11->trunkKim Alvefur2019-05-261-14/+22
|\|
| * mod_storage_sql: Handle SQLite DELETE with LIMIT being optional (fixes #1359)Kim Alvefur2019-05-131-6/+15
| |
| * mod_storage_sql: Move code out of if-else chainKim Alvefur2019-05-131-9/+8
| |
* | mod_storage_sql: Add support for iterating over users in archive storesKim Alvefur2019-05-051-0/+13
| |
* | mod_storage_sql: Implement archive summary APIKim Alvefur2019-02-251-0/+35
| |
* | mod_storage_sql: No archive item limit by defaultKim Alvefur2019-03-221-4/+6
| |
* | mod_storage_sql: Return cached count if only this is queried forKim Alvefur2019-03-221-1/+5
| |
* | mod_storage_sql: Cache total count if it's calculated as part of the current ↵Kim Alvefur2019-03-221-0/+3
| | | | | | | | query
* | mod_storage_sql: Skip cache writeKim Alvefur2019-03-221-1/+0
| | | | | | | | | | This would cause the cache to be wrong in case the the later INSERT fails and the transaction is aborted.
* | mod_storage_sql: Fix to use currently queried storeKim Alvefur2019-03-221-2/+2
| | | | | | | | | | Was using the previously queried store due to this being cached in an upvalue.
* | mod_storage_sql: Don't increment counter twice (fixes accounting error)Kim Alvefur2019-03-221-1/+0
| |
* | mod_storage_internal,_sql: Key item count cache on both username and storeKim Alvefur2019-03-221-5/+8
| |
* | mod_storage_internal,_sql: Expose archive capabilities feature setKim Alvefur2019-03-221-0/+2
| | | | | | | | 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-1/+38
| | | | | | | | (fixes #733)
* | various: Don't rely on _G.unpack existingKim Alvefur2018-12-081-1/+1
|/
* mod_storage_sql: Catch errors during schema upgrade (thanks Nothing4You)Matthew Wild2018-11-151-4/+4
|
* mod_storage_sql: Handle Lua 5.3 move of unpack functionKim Alvefur2018-10-211-1/+1
|
* mod_storage_sql: Fix issue number in comment that was fixed by 55b40f3fa659 ↵Matthew Wild2018-10-131-1/+1
| | | | (fixes #1073)
* mod_storage_sql: Keep prosodyarchive_index unique constraint on non-MySQL DBsMatthew Wild2018-10-121-1/+1
|
* mod_storage_sql: Change prosodyarchive_index to be non-unique (fixes #1087)Matthew Wild2018-10-111-8/+25
| | | | | | MySQL requires that the first 20 bytes are unique, even if they differ after the first 20 bytes. This breaks e.g. pubsub/PEP nodes longer than 20 characters that have common prefixes.
* mod_storage_sql: Have :users() throw an error on failure instead of ↵Matthew Wild2018-10-111-1/+1
| | | | returning non-iterator values
* mod_storage_sql: Workaround MySQL not supporting LIMIT subquery in archive ↵Matthew Wild2018-10-111-3/+9
| | | | truncate operations, fixes #1200
* mod_storage_sql: Remove unused function argument [luacheck]Kim Alvefur2018-10-101-1/+1
| | | | What was the intent of this argument anyways?
* mod_storage_sql: Catch and report value deserialization errorsKim Alvefur2018-02-241-8/+19
|
* Merge 0.10->trunkKim Alvefur2017-12-221-1/+1
|\
| * mod_storage_sql: Index over contact and timestamp (happy now Ge0rg?)Kim Alvefur2017-12-121-1/+1
| |
* | mod_storage_sql: Remove ability to override name of key-value table ↵Kim Alvefur2017-12-111-1/+1
| | | | | | | | (unreachable and would not work)
* | Merge 0.10->trunkKim Alvefur2017-11-211-0/+2
|\|
| * mod_storage_sql: Add indices that include the with and when columns of archivesKim Alvefur2017-11-211-0/+2
| |
* | mod_storage_sql: Add support for truncating deletionKim Alvefur2017-11-091-1/+29
| |
* | Merge 0.10->trunkKim Alvefur2017-10-051-2/+2
|\|
| * mod_storage_sql: Also clear the prosodyarchive table when an user is deleted ↵Kim Alvefur2017-10-051-0/+1
| | | | | | | | (fixes #1009)
| * mod_storage_sql: Remove return values from purge methodKim Alvefur2017-10-051-2/+1
| |
* | Merge 0.10->trunkKim Alvefur2017-05-171-1/+1
|\|
| * mod_storage_sql: Fix logic error introduced by variable rename in ↵Matthew Wild2017-04-301-1/+1
| | | | | | | | aa9f198cb3c9 (thanks waqas)
* | Merge 0.10->trunkKim Alvefur2017-04-131-6/+10
|\|
| * mod_storage_sql: Limit encoding check to current databaseKim Alvefur2017-04-131-2/+4
| |
| * mod_storage_sql: Break long linesKim Alvefur2017-04-121-2/+5
| |
| * mod_storage_sql: Pass charset and collation names via variable bindingKim Alvefur2017-04-121-4/+3
| |
| * mod_storage_sql: Quote some field namesKim Alvefur2017-04-121-2/+2
| |
* | Merge 0.10->trunkKim Alvefur2017-04-121-1/+1
|\|
| * mod_storage_sql: Raise error if encoding check query failsKim Alvefur2017-04-121-1/+1
| |