MCPcopy
hub / github.com/prisma/prisma / prismaQueryInsights

Function prismaQueryInsights

packages/sqlcommenter-query-insights/src/index.ts:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 * - Batched queries: `/*prismaQuery='User.findUnique:W3siYXJndW1lbnRzIjp7IndoZXJlIjp7ImlkIjp7IiR0eXBlIjoiUGFyYW0ifX19fV0'* /`
27 */
28export function prismaQueryInsights(): SqlCommenterPlugin {
29 return (context) => {
30 const insight = formatQueryInsight(context.query)
31 return { prismaQuery: insight }
32 }
33}

Callers 2

index.tsFile · 0.90
index.test.tsFile · 0.90

Calls 1

formatQueryInsightFunction · 0.90

Tested by

no test coverage detected