sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

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

Open hamirmahal opened this issue 1 year ago • 1 comments

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 avatar Jul 16 '24 21:07 hamirmahal

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

abonander avatar Jul 20 '24 03:07 abonander