about summary refs log tree commit diff
path: root/src/database/memory.rs
Commit message (Collapse)AuthorAgeFilesLines
* Introduce `Storage::update_with`Vika2024-08-281-0/+7
| | | | | | | | | This function takes a closure that modifies the post. This could be useful in maintenance utilities that scan and fixup posts. For now this isn't used anywhere within Kittybox, but once all backends implement this correctly, this could replace `Storage::update_post` calls. For supporting backends, `Storage::update_post` is implemented in terms of `Storage::update_with`.
* Set MSRV to 1.75, remove #[async_trait] declarations whenever possibleVika2024-08-261-4/+2
| | | | | | | Axum still uses `async_trait`, let them do whatever they want. I will no longer be subject to the humiliation of trying to dig through lifetime errors and unreadable declarations. Also I don't fucking care about MSRV, I'm not a library. If you don't have modern Rust, get one.
* treewide: create a common method for state initializationVika2024-08-011-16/+5
| | | | | Now the database objects can be uniformly created from a URI. They can also optionally do sanity checks and one-time initialization.
* database: use Url to represent user authoritiesVika2024-07-091-14/+9
| | | | This makes the interface more consistent and resistant to misuse.
* Support ?q=category queriesVika2024-03-041-0/+4
| | | | Warning, untested. But hopefully works!
* Moved the entire Kittybox tree into the rootVika2023-07-291-0/+249
|
* flake.nix: reorganizeVika2022-05-241-200/+0
| | | | | | | | | | | | - Kittybox's source code is moved to a subfolder - This improves build caching by Nix since it doesn't take changes to other files into account - Package and test definitions were spun into separate files - This makes my flake.nix much easier to navigate - This also makes it somewhat possible to use without flakes (but it is still not easy, so use flakes!) - Some attributes were moved in compliance with Nix 2.8's changes to flake schema
* database, frontend: code cleanup so clippy doesn't complainVika2022-05-101-14/+11
|
* Make the settings in the database a strong typeVika2022-03-231-3/+3
|
* Restored most of the functionality (except onboarding and some queries)Vika2022-03-061-11/+18
|
* database/memory: restore, it is useful in test scenariosVika2022-02-211-0/+196
|
* Removed the in-memory database, it's dragging me downVika2021-05-051-188/+0
|
* Implemented MemoryStorage::update_post()Vika2021-05-041-1/+82
|
* Refactored the database module and its testsVika2021-05-041-0/+107