MCPcopy
hub / github.com/prisma/prisma / buildSqlComment

Function buildSqlComment

packages/client-engine-runtime/src/sql-commenter.ts:63–66  ·  view source on GitHub ↗
(plugins: SqlCommenterPlugin[], context: SqlCommenterContext)

Source from the content-addressed store, hash-verified

61 * Applies SQL commenter plugins and returns the formatted comment.
62 */
63export function buildSqlComment(plugins: SqlCommenterPlugin[], context: SqlCommenterContext): string {
64 const tags = applySqlCommenters(plugins, context)
65 return formatSqlComment(tags)
66}
67
68/**
69 * Appends a sqlcommenter comment to a SQL query.

Callers 2

applyCommentsFunction · 0.90

Calls 2

applySqlCommentersFunction · 0.85
formatSqlCommentFunction · 0.85

Tested by

no test coverage detected