We use Prisma, which means besides the easy to add Prisma.sql we also want to format SQL used in <prisma client>.$executeRaw and <prisma client>.$executeRaw. The problem is that the actual client variable might be any of prisma, client, ctx.prisma, transaction and potentially others inside the project. Ideally we'd want to just match on anything that ends with .$queryRaw or .$executeRaw.
Not sure how to best allow this, but if you could extend the tag comparison to allow regular expressions we could use /\.\$queryRaw$/ and /\.\$executeRaw$/.
We use Prisma, which means besides the easy to add
Prisma.sqlwe also want to format SQL used in<prisma client>.$executeRawand<prisma client>.$executeRaw. The problem is that the actual client variable might be any ofprisma,client,ctx.prisma,transactionand potentially others inside the project. Ideally we'd want to just match on anything that ends with.$queryRawor.$executeRaw.Not sure how to best allow this, but if you could extend the tag comparison to allow regular expressions we could use
/\.\$queryRaw$/and/\.\$executeRaw$/.