uptrace / bun

SQL-first Golang ORM
https://bun.uptrace.dev
BSD 2-Clause "Simplified" License
3.65k stars 221 forks source link

Documentation: Error handling #928

Open ivoras opened 11 months ago

ivoras commented 11 months ago

I'm having a hard time finding how to handle db errors in bun. Specifically, how to check for unique index violations?

I think this deserves both examples and a documentation chapter.