about summary refs log tree commit diff stats
path: root/src/database.h
Commit message (Collapse)AuthorAgeFilesLines
* Apply coding styleMichael Vetter2020-07-071-7/+6
|
* Revert "Apply coding style"Michael Vetter2020-07-071-7/+8
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-8/+7
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* db: Use type from message struct instead of having individual functionsMichael Vetter2020-04-061-3/+1
|
* Remove chat_log_get_previous()Michael Vetter2020-04-061-1/+1
| | | | | | | | | | | | We now dont get the log files from the text files via chat_log_get_previous() anymore. We use the sql backend via log_database_get_previous_chat(). So far it just has the same behaviour like chat_log_get_previous(), except that in _chatwin_history() we don't pass the sender to win_print_history() which should be fixed in a commit soon. And log_database_get_previous_chat() can later easily be expanded to fix https://github.com/profanity-im/profanity/issues/205.
* Get regular chat history out of sql backendMichael Vetter2020-04-061-0/+1
|
* db: log all incoming and outgoing messagesMichael Vetter2020-04-061-1/+3
|
* db: log outgoing message in one caseMichael Vetter2020-04-061-0/+1
| | | | Not all cases covered yet.
* db: add dedicated chat, muc, muc pm logging functionsMichael Vetter2020-04-061-1/+3
|
* db: insert message typeMichael Vetter2020-04-061-1/+1
|
* db: move includesMichael Vetter2020-04-061-2/+6
|
* db: Have one database per accountMichael Vetter2020-04-061-1/+1
|
* database: log stanza_id and whether it is a muc messageMichael Vetter2020-04-061-1/+1
|
* database: log incoming messagesMichael Vetter2020-04-061-0/+1
| | | | First trial. Not covering all cases yet.
* Start SQLite db moduleMichael Vetter2020-04-061-0/+43
I plan to save all messages in an SQLite db. For retrieving information it's nicer than having it in a text file. We will have more info in there and easier to parse it. This will also be good for later MAM (https://github.com/profanity-im/profanity/issues/660). Regular text files will still be an option for users so that they can easily grep them and do whatever they like. Internally Profanity will only use the SQLite db.