about summary refs log tree commit diff
path: root/src/db.rs
AgeCommit message (Collapse)AuthorFilesLines
2018-04-14 chore(db): Arbitrarily limit search result sizeVincent Ambo1-0/+1
... until pagination is in place.
2018-04-14 feat(main/db): Schedule regular search view refreshVincent Ambo1-0/+21
Schedules refreshes of the database view used for search at one-minute intervals.
2018-04-14 feat(db): Implement handling of 'SearchPosts' messageVincent Ambo1-1/+40
Adds support for executing full-text search across a forum instance by sending the `SearchPosts` message with a search query to the DB actor. The struct used for results is mapped manually to the expected query result as the query is embedded via raw SQL.
2018-04-14 feat(db): Add view for ordering thread index by most recent postVincent Ambo1-5/+4
This implements the classic thread ordering expected by most forum users (i.e. the thread with the most recent post is at the top).
2018-04-14 feat: License project under GPLv3Vincent Ambo1-0/+16
2018-04-14 refactor(db): Store thread body in the posts tableVincent Ambo1-5/+26
This is a simplification over the previous approach. The OP of a thread is just a normal post like any other in this model, which allows some code simplifications (and future query convenience).
2018-04-09 fix(db): Order index threads in descending post timeVincent Ambo1-1/+3
Technically the last post date should matter more here, but we'll get there.
2018-04-08 feat(db/models): Add handling of CreatePost messageVincent Ambo1-2/+23
2018-04-08 feat(db): Support CreateThread messageVincent Ambo1-0/+22
2018-04-08 refactor(db): Use ConverseError instead of unwrapping/expectingVincent Ambo1-10/+8
2018-04-08 refactor(db): Establish Post->Thread associationVincent Ambo1-2/+6
This makes it possible to query posts by thread via Diesel.
2018-04-08 feat(db): Add initial GetThread messageVincent Ambo1-0/+22
Adds a GetThread message that returns a thread by ID. This does not yet load posts.
2018-04-08 feat(db): Implement ListThreads messageVincent Ambo1-1/+23
Implements support for a message for listing threads. This does not have any pagination support yet.
2018-04-08 feat(db): Bootstrap DbExecutor actorVincent Ambo1-0/+13
Bootstraps an Actix actor carrying DB connections. This actor will be used to interact with converse's database.