denisenkom / go-mssqldb

Microsoft SQL server driver written in go language
BSD 3-Clause "New" or "Revised" License
1.82k stars 495 forks source link

Constraint error handling #663

Open pepijn-hockers opened 3 years ago

pepijn-hockers commented 3 years ago

Hi all,

I just started using this package. I'm building a REST API that executes CRUD operations on a Microsoft SQL database. The good flow works for all my endpoints. Now I want to start with the failures, bad flow, and error handling. For instance,

How do you handle these types of error constraints within your Golang application? Please provide me with best practices, code example, repositories?

Kind regards,

Pepijn