-
|
Hi, I am trying to match unique violation error, foreign key violation and not nul violation (for different use cases), but I could not figure out from documentation and source code. I couldn't a variant of DbErr with these errors. So I tried looking into Then, I am not sure either how to get that from the SqlxError. I am using Postgresql as backend. Is there an example to match these specific errors please? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hey @Samiisd, welcome!! Please upgrade to 0.10.1. We just updated the Example: Lines 13 to 55 in 5cce1d3 |
Beta Was this translation helpful? Give feedback.
Hey @Samiisd, welcome!! Please upgrade to 0.10.1. We just updated the
DbErryou can now match the error code thrown by the database.Example:
sea-orm/tests/crud/error.rs
Lines 13 to 55 in 5cce1d3