sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

How to distinguish serialization error from others?

Open olezhek28 opened this issue 2 years ago • 0 comments

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.

olezhek28 avatar Aug 03 '23 10:08 olezhek28