language-tools
language-tools copied to clipboard
Quick-fixes for Prisma Client API raw functions
We should have quick fixes for
executeRaw(sql, params)andqueryRaw(sql, params)- or
-
executeRaw`sql` - and
-
queryRaw`sql` - for
queryRaw(sql)andexecuteRaw(sql).
This is only possible if the extension is activated not only for .prisma files.
What exactly should the quick fix do here @carmenberndt, do you remember maybe? Replacing ( with backticks and such?
@janpio Not quite, here's the link to the internal discussion: https://prisma-company.slack.com/archives/C5Z9TH6N9/p1593174137040600?thread_ts=1593166055.039500&channel=C5Z9TH6N9&message_ts=1593174137.040600
Thanks for that link.
I guess we need to update that now somehow that we split the safe and unsafe functions into separate functions - see https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access. Not sure how that would affect any Quick Fixes or what those would look like based on this.