Skip to content

Allow matching the end of embeddedSqlTags #161

@noahmayr

Description

@noahmayr

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$/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions