Replies: 1 comment
-
I ended up with adding safeRawQuery method to Database. My steps:
At least, it works for me. I would prefer if I could somehow just trim SQL query from the answer, but it's beyond my scope right now. Hope it'll help someone in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm really sorry if it's something obvious, but I couldn't find any solution to this. When I use rawQuery, it outputs full SQL query into 'message' in case of exception - which is, of course, far from expected in production.
What's my options here? Is there some way to output error itself only? My only idea right now is to detect crash in rawQuery in handler.ts/handle, and then cut error by myself - which not only sounds stupid, but also could be dangerous.
Beta Was this translation helpful? Give feedback.
All reactions