soju/contrib
delthas 1ccc7ce6d2 Add a database store for messages
This adds a new config option, `logs db`, which enables storing chat
logs in the soju database.

Regular store options, CHATHISTORY options, and SEARCH operations are
supported, like the fs logs backend.

Messages are stored in a new table, Message. In order to track the list
of targets we have messages for in an optimized manner, another database
is used: MessageTarget.

All new requests are backend by indexes so should be fast even with
hundreds of thousands of messages.

A contrib script is provided for migrating existing logs fs chat logs to
the database. It can be run with eg:

  go run ./contrib/migrate-logs/ logs/ sqlite3:soju.db

Co-authored-by: Simon Ser <contact@emersion.fr>
2023-02-17 14:13:43 +01:00
..
migrate-db contrib/migrate-db: new script 2022-07-04 15:50:35 +02:00
migrate-logs Add a database store for messages 2023-02-17 14:13:43 +01:00
znc-import Add a flag to disable users 2023-01-26 18:33:55 +01:00
casemap-logs.sh contrib/casemap-logs.sh: new utility script 2021-03-26 15:31:54 +01:00
clients.md contrib/clients: Warn about Hexchat password limit 2023-01-25 00:06:40 +01:00