Repository navigation
Add createQuery and remove error handler for now - #88
Conversation
|
👍 |
|
@daffl what was the reasoning for removing the error handler? imho it probably should beefed up rather than pulled out. It catches, transforms and re-throws. Maybe I'm missing something... |
|
The reason was that it doesn't seem to do anything. Even when using SQLite none of the errors get converted (and it's not supporting any other DB drivers). I found it really hard to find all the possible errors the ORMs can throw and map them (I can't find anything about it in the Knex or most of the driver docs). Now that we have error hooks it's pretty easy to just map them to what you need yourself. |
|
Really? The SQLite errors are not getting mapped? Weird. Ya you have to do some digging in the code of the drivers to find the errors that spit out. I'd sort of like to keep it for now if it's not interfering with anything but at the same time if you just ignored me I wouldn't be upset either. 😉 The only thing is this may be a breaking change if the SQLite errors are getting mapped. I could have sworn they were. |
|
Good point. And it doesn't really have anything to do with what this PR is for. I added it back. |
|
|
Closes #87