Skip to content

Conversation

@graysonguarino
Copy link
Collaborator

Issue Number:
Reference the issue this PR fixes.

Description of Changes:
Provide a clear and concise explanation of what changes you made and why.

  • Switches from diesel to sqlx
  • Updates protos to better match new schema

Testing Done:
How did you test your changes? Share details like steps, tools used, or results.

N/A

Terms of contribution:

By submitting this pull request, I agree that this contribution is licensed under the terms of the Apache License, Version 2.0.


Thanks for submitting your pull request! We will review it as soon as possible.

@graysonguarino graysonguarino requested a review from ecpullen April 16, 2025 16:43
@graysonguarino graysonguarino marked this pull request as ready for review April 16, 2025 16:44
DatabaseServiceState { db_conn_details }
pub fn new(db_pool: &PgPool) -> Self {
DatabaseServiceState {
db_pool: db_pool.clone(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any concerns with cloning this instead of keeping a reference (The answer is almost certainly no)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PgPool (and all *Pool types in sqlx) are wrapped in an Arc, so cloning here is fine.

@graysonguarino graysonguarino merged commit 84612c3 into mvp Apr 16, 2025
1 of 2 checks passed
@graysonguarino graysonguarino deleted the server/switch-to-sqlx branch April 16, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants