Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SQLx in ping query #1999

Merged
merged 6 commits into from
Jul 16, 2024
Merged

Use SQLx in ping query #1999

merged 6 commits into from
Jul 16, 2024

Conversation

emmiegit
Copy link
Member

@emmiegit emmiegit commented Jul 16, 2024

The first migrated query, this one is an ad hoc one to ensure the database is connected, so doesn't benefit from SeaORM at all.

api-1       | sqlx::query summary="SELECT 1" db.statement="" rows_affected=1 rows_returned=1 elapsed=1.104059ms elapsed_secs=0.001104059
api-1       | deepwell::endpoints::misc Successfully pinged Postgres
api-1       | deepwell::endpoints::misc Successfully pinged Redis
api-1       | sqlx::query summary="COMMIT" db.statement="" rows_affected=0 rows_returned=0 elapsed=232.294µs elapsed_secs=0.000232294

Also bumps the deepwell version since it's been a while.

@emmiegit emmiegit self-assigned this Jul 16, 2024
@emmiegit emmiegit merged commit fddef4a into develop Jul 16, 2024
8 checks passed
@emmiegit emmiegit deleted the sqlx-ping branch July 16, 2024 13:27
@emmiegit
Copy link
Member Author

thanks @Yossipossi1

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.

2 participants