SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
7.3k stars 513 forks source link

Sea-orm error handling is not friendly enough to distinguish SQL execution errors by type #881

Closed step-baby closed 2 years ago

step-baby commented 2 years ago

Motivation

First of all, sea-orm is the orm framework I am looking forward to, and I have used this now. But I think this error handling is not friendly enough. It is impossible to judge the type of SQL execution error through an enumeration, such as the error of violating the unique constraint.

Proposed Solutions

Additional Information

billy1624 commented 2 years ago

Hey @step-baby, sorry for the delay. This is a good suggestions and it has been discussed before. Please check related thread below and let us know your opinions:

tyt2y3 commented 2 years ago

Merge into https://github.com/SeaQL/sea-orm/issues/1194