sqlx
sqlx copied to clipboard
How to distinguish serialization error from others?
Hello!
I have a question about a serialization error. When I use a serializable isolation level, the database may return a serialization error. For example, the PostgreSQL documentation advises that in this case the query should be repeated. But I don't know how to understand that this error is a serialization error or not. For example, pgx has a special type of error in golang code. How to solve this problem for your library? Thank you.