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

[feature request]: more detailed errors when executing or running migrations #3351

Open
hamirmahal opened this issue Jul 16, 2024 · 1 comment · May be fixed by #3357
Open

[feature request]: more detailed errors when executing or running migrations #3351

hamirmahal opened this issue Jul 16, 2024 · 1 comment · May be fixed by #3357
Labels
enhancement New feature or request

Comments

@hamirmahal
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It can be difficult to find the source of an issue when getting an error message without a lot of specificity.

error: while executing migrations: error returned from database: syntax error at or near "name"

This error gave a string in the source file, which is nice.

Describe the solution you'd like
Ideally, sqlx would give the line number and character where there's an error.

If that's difficult to obtain, maybe it could say which migration file has the error.

@hamirmahal hamirmahal added the enhancement New feature or request label Jul 16, 2024
@hamirmahal hamirmahal changed the title [feature request]: more deatiled errors when executing or running migrations [feature request]: more detailed errors when executing or running migrations Jul 17, 2024
@abonander
Copy link
Collaborator

This is already partly addressed by #3130, but that doesn't include line information in the query itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants