encore icon indicating copy to clipboard operation
encore copied to clipboard

docs: add instructions on how to handle Postgres errors

Open melkstam opened this issue 4 years ago • 1 comments

We ran into the problem of how to handle specific database errors in Encore and after some digging, we found a good solution. We thought others might be interseted as well and therefore wrote a short instruction on how to do it.

If you feel like it should belong somewhere else or if shomething should change, please feel free to make any changes or let me know!

melkstam avatar Jan 19 '22 19:01 melkstam

All committers have signed the CLA.

encore-cla[bot] avatar Jan 19 '22 19:01 encore-cla[bot]

Hey @melkstam we've since added sqlerr to the runtime, which provides this information without exposing driver specific data (Allowing Encore to upgrade it's driver without breaking your code).

So I'm going to close this for now, however please reopen it if it doesn't solve your issue

DomBlack avatar Feb 28 '23 13:02 DomBlack