summaryrefslogtreecommitdiff
path: root/src/database/database.hpp
AgeCommit message (Collapse)Author
2019-11-06Use the right int64 type for INTEGER rows in the dblouiz’
2018-08-23Disable the throttle limit if negativelouiz’
Also, invalid values result in -1 being set
2018-08-23Fix one more warninglouiz’
2018-08-04Fix the real_type of ThrottleLimitlouiz’
2018-06-25Throttle all commands sent to IRC serverslouiz’
fix #3354
2018-04-29mam: Send “fin complete” only when appropriatelouiz’
Also simplify how we did the whole “limit + 1” And fix one bad interpretation of the XEP for the case where the query has no after or before restriction. fix #3349
2018-04-29Missing fields in a data-form response are now interpreted as an empty valuelouiz’
2018-04-24Revert "Use a different Date data type"louiz’
This reverts commit 857c7d3972a03cbeebf730d99b924d3710dee6a0.
2018-04-24Revert "Use the Date to find a next page in RSM, not the id"louiz’
This reverts commit 5ef7ba08028065b03d51d1dc70bb35aeb41ae19d.
2018-04-14Use the Date to find a next page in RSM, not the idlouiz’
This way, it works, whatever the order of insertion in the database was. fix #3343
2018-04-11Use a different Date data typelouiz’
PLEASE backup your database before testing this commit, and report any migration issue. In postgresql, we use timestamp with timezone. In sqlite3 we use REAL (the date is expressed as julianday) This requires a migration of the muclogline_ table: In postgresql it’s pretty simple, we convert all the integer into timestamps With sqlite3, we actually rename the table, create the new one with the correct type, then copy everything to the new table, with a conversion function for the Date_ column, and then we delete the old table. fix #3343
2018-03-19Add a nick field in the IRC server configuration formlouiz’
fix #3317
2018-03-18Use a transaction around the DELETE + INSERT of the after_connection_commandslouiz’
Otherwise we can imagine that two clients changing this value at the same time would mix things up. ref #3275
2018-03-18Allow the execution of multiple commands after the IRC connectionlouiz’
fix #3275
2018-03-17Revert "Use std::optional<bool> instead of OptionalBool"louiz’
This reverts commit ba879a882e031d7b8503f78fe41d1210000c96ca.
2018-03-16Use std::optional<bool> instead of OptionalBoollouiz’
2018-03-12Rename a few “hostname” into “address”, regarding last commitlouiz’
ref #3273
2018-03-12Allow to override the addresses used to connect to an IRC networklouiz’
fix #3273
2018-02-13Support the <before/> element in MAM requestslouiz’
2018-02-13Use the same function for both history orderslouiz’
2018-02-11Send a item-not-found error when the “after” value is not in the archivelouiz’
2018-02-10Handle the “after” RSM value to page through resultslouiz’
2018-02-10Always return the oldest matching messages from MAM, even if no date is setlouiz’
2017-12-02Add postgresql supportlouiz’
2017-09-09Add the persistent_by_default configuration optionlouiz’
fix #3293
2017-08-26Cache the encoding_in database value, to avoid doing a query for each messagelouiz’
2017-07-16Use a db roster to manage biboumi’s presence with the contactslouiz’
2017-07-08Remove all the empty “options” members in Column classeslouiz’
By using SFINAE to use that member only when it exists.
2017-07-06Add a global “persistent” optionlouiz’
2017-06-16Using OptionalBool, add RecordHistoryOptional col into IrcChannelOptions tablelouiz’
ref #3269
2017-06-14Fix compilation (many warnings, and a linkage error) with clang++louiz’
2017-06-14Fix an inversion of tlsPorts_ and ports_louiz’
2017-06-14Add default values for the database columnslouiz’
2017-06-14Implement our own database ORM, and update the whole code to use itlouiz’
Entirely replace LiteSQL fix #3271
2017-03-30Add the archive ID to messages when they are sent to userslouiz’
This makes us compatible with mam 6.0 fix #3249
2017-03-29Remove two sneaky log_debuglouiz’
2016-09-04MAM results can be filtered by start and end dateslouiz’
2016-08-23If the maxHistoryLength is negative, make it 0louiz’
Instead of doing a broken SQL request that returns weird lines
2016-08-22When joining a channel, send the most recent history found in the databaselouiz’
2016-08-22Add a global configure ad-hoc command, with max history lengthlouiz’
2016-08-12Save received and sent messages into the databaselouiz’
2016-07-12Properly catch and handle database errorslouiz’
Do not use a singleton for the database. fix #3203
2016-07-04Replace all include guards by #pragma oncelouiz’
It’s $CURRENT_YEAR
2016-05-04Style fixlouiz’
Move all constructors at the top of classes
2016-01-04Add a ChannelOptions table in the DBFlorent Le Coz
And a way to retrieve its values, defaulting on the ServerOptions for unset values.
2015-09-18Introduce an optional Database moduleFlorent Le Coz
Uses litesql