MCPcopy
hub / github.com/prisma/prisma / prismaSslAcceptToMySQL2Ssl

Function prismaSslAcceptToMySQL2Ssl

packages/cli/src/Studio.ts:414–425  ·  view source on GitHub ↗
(sslAccept: string)

Source from the content-addressed store, hash-verified

412}
413
414function prismaSslAcceptToMySQL2Ssl(sslAccept: string): { rejectUnauthorized: boolean } {
415 switch (sslAccept) {
416 case 'strict':
417 return { rejectUnauthorized: true }
418 case 'accept_invalid_certs':
419 return { rejectUnauthorized: false }
420 default:
421 throw new Error(
422 `Unknown Prisma MySQL sslaccept value "${sslAccept}". Supported values are "strict" and "accept_invalid_certs".`,
423 )
424 }
425}
426
427// prettier-ignore
428function getIndexHtml(adapter: StudioAdapterType): string {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected