Theo Gravity
Explore posts from serversHow do I log thrown errors from the query/ mutation on the server side globally?
Same with the source for it: https://github.com/trpc/trpc/blob/main/examples/express-server/src/server.ts
9 replies
How do I log thrown errors from the query/ mutation on the server side globally?
It doesn't offer anything around that: https://trpc.io/docs/server/adapters/express
9 replies
How to translate the WITH keyword in postgres when SELECT does not have FROM?
Linking the github issue thread so it can be traced: https://github.com/kysely-org/kysely/issues/517
9 replies
Using Postgres function in an insert with a field as a select
This works, but it's not ideal as
sql.lit
says it's susceptible to SQL injection. Is there a version that I can use that would be safe (eg parameter binding)? The document.text_content
variable would come from user input, and the contents of that variable is whatever they wrote. We may or may not have sanitized it by the time it gets called here.
20 replies