sqlx
sqlx copied to clipboard
[feature request]: more detailed errors when executing or running migrations
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.
This is already partly addressed by #3130, but that doesn't include line information in the query itself.