about summary refs log tree commit diff
path: root/src/database/postgres/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix the current-thread runtime tests w/ sqlxVika2024-09-191-0/+3
| | | | Tracked upstream as https://github.com/launchbadge/sqlx/issues/3510
* Introduce `Storage::update_with`Vika2024-08-281-6/+15
| | | | | | | | | 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`.
* Make Micropub update logic self-containedVika2024-08-281-33/+1
| | | | | | This allows for a separation of concerns between database backends and Micropub, unless such backend have special requirements, like the file backend storing children of a feed in an array.
* Set MSRV to 1.75, remove #[async_trait] declarations whenever possibleVika2024-08-261-4/+4
| | | | | | | 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.
* Appease most clippy warningsVika2024-08-261-64/+3
| | | | | | The warnings only remain in places where I need them to remain, because I either need a reminder to implement something, or I need to refactor and simplify the code in question.
* Fix private posts with no defined audience not being shown in feedsVika2024-08-231-4/+7
|
* kittybox-util: 0.1.0 -> 0.2.0Vika2024-08-201-1/+1
| | | | Micropub types are now more coherent and gathered in one place.
* Upgrade dependencies and fix deprecated functionalityVika2024-08-021-2/+2
| | | | | | | I think I managed to not lose any functionality from my dependencies. sqlparser remains unupgraded, but that's mostly because it is only used in one example and it's not worth it to upgrade right now.
* treewide: create a common method for state initializationVika2024-08-011-15/+15
| | | | | 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-13/+14
| | | | This makes the interface more consistent and resistant to misuse.
* Support ?q=category queriesVika2024-03-041-0/+15
| | | | Warning, untested. But hopefully works!
* lint: no extra whitespace on line endingsVika2024-01-291-3/+3
|
* Moved the entire Kittybox tree into the rootVika2023-07-291-0/+416