Axum API scaffolding#175
Merged
josecelano merged 3 commits intotorrust:developfrom Jun 8, 2023
josecelano:issue-174-axum-api-scaffolding
Merged
Axum API scaffolding#175josecelano merged 3 commits intotorrust:developfrom josecelano:issue-174-axum-api-scaffolding
josecelano merged 3 commits intotorrust:developfrom
josecelano:issue-174-axum-api-scaffolding
Conversation
We decided to migrate from Actix Web to Axum. The main reason was we are also using Axum on the Tracker and it will be easier for us to mantain only one framework. And apparently there are no drawbacks. This commit adds the new dependencies.
When the loggin level is set to INFO sqlx logs all SQL statements like this: ``` 2023-06-06T17:19:52.639651375+01:00 [sqlx::query][INFO] SELECT version FROM _sqlx_migrations …; rows affected: 0, rows returned: 0, elapsed: 58.361µs SELECT version FROM _sqlx_migrations WHERE success = false ORDER BY version LIMIT 1 ``` This commits makes sqlc to log only failed statements as errors and slow statements (>1 second) as warnings.
Closed
Basic changes needed to run the Axum API implementation in parallel with the current one with ActixWeb. For the time being, we will be only useinf the Auxm implementation for testing until all endpoints are migrated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Basic changes which are needed to run the Axum API implementation in parallel with the current one with ActixWeb. For the time being the Axum implementation will be only used for testing until all endpoints are migrated.