deadpool, diesel and errors! #16

Merged
radical merged 17 commits from deadpool-diesel into main 2025-05-23 11:07:21 +00:00
Owner

New dependencies

deadpool = "0.12"
diesel = { version = "2.2", features = ["uuid"] }
diesel-async = { version = "0.5", features = ["deadpool", "postgres", "async-connection-wrapper"] }
diesel_migrations = { version = "2.2.0", features = ["postgres"] }
thiserror = "2.0.12"

Removed dependencies

sqlx = { version = "0.8", features = ["runtime-tokio", "tls-native-tls", "postgres"] }

Changes

This PR impacts the entire codebase, we're now using diesel to handle DB (look up how to use diesel-cli and specifically migrations, important for db changes) and we're using thiserror to implement ResponseError in all the different dependencies to make them displayable in web (will have to be adjusted, we shouldn't leak information to the user).

## New dependencies ```toml deadpool = "0.12" diesel = { version = "2.2", features = ["uuid"] } diesel-async = { version = "0.5", features = ["deadpool", "postgres", "async-connection-wrapper"] } diesel_migrations = { version = "2.2.0", features = ["postgres"] } thiserror = "2.0.12" ``` ## Removed dependencies ```toml sqlx = { version = "0.8", features = ["runtime-tokio", "tls-native-tls", "postgres"] } ``` ## Changes This PR impacts the entire codebase, we're now using diesel to handle DB (look up how to use diesel-cli and specifically migrations, important for db changes) and we're using thiserror to implement ResponseError in all the different dependencies to make them displayable in web (will have to be adjusted, we shouldn't leak information to the user).
radical added 17 commits 2025-05-23 11:03:36 +00:00
radical merged commit 82ac501519 into main 2025-05-23 11:07:21 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gorb/backend#16
No description provided.